(9) The basic use of stata-merge regression

Merge regression

concept:

Insert picture description here

Example:

ols regression
Insert picture description here
Insert picture description here
drawing:
Insert picture description here
merge regression

Insert picture description here
Need to install the plug-in separately:
Insert picture description here
Insert picture description here
Insert picture description here

Two-part model for merging data

Hurdle model

concept

Insert picture description here
Insert picture description here

Example

Use full sample for probit regression
Insert picture description here
Insert picture description here

Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
In the above table, if the P value is less than 0.05, the null hypothesis is rejected and heteroscedasticity is considered

Test the normality of the disturbance term:

Insert picture description here

Reject the null hypothesis of normality (I didn’t understand the above table)

Draw a nuclear density chart:
Insert picture description here
Insert picture description here

Tobit model with endogenous variables:

meaning

Insert picture description here

command

Insert picture description here

Example

Insert picture description here
Insert picture description here
Perform IV Tobit estimation
Insert picture description here
Insert picture description here

Now perform the two-step least squares method:
Insert picture description here
Insert picture description here
Insert picture description here

Guess you like

Origin blog.csdn.net/qq_42830971/article/details/109270394