Dear Statalisters,
Here is the code I used.
---copy starts---
probit d x z
predict xb, xb
gen lambda = normalden(xb) / normal(xb) if treat== 1
replace lambda = -normalden(xb) / (1- normal(xb)) if treat== 0
gen lambda1 = lambda
gen lambda0 = -normalden(xb) / (1- normal(xb)) if treat== 0
regress y x i.id i.year lambda1 if treat== 1
regress y x i.id i.year lambda0 if treat== 0
---copy ends---
Notes
*lambda= inverse Mills ratio. A coefficient of lambda represents co-variance of the error term of selection equation, u, and the error term of either of the main equations, ε1 or ε0.
** In movestay command, rho is correlation coefficient between u and ε1 or ε0. Sigma is standard deviation of ε1 or ε0. Variance of u is assumed to be one. Coefficient of lambda1=sigma1*rho1. Coefficient of lambda0=sigma0*rho0
Having estimated the coefficient of lambda, I need to know the followings.
Q1: Is rho of movestay is significant when estimated coefficient of lambda is significant?
Q2: How do I estimate rho and sigma of movestay separately and manually?
Any help would be appreciated.
I do recognize movestay is a user generated program, but I just would like to have a broad spectrum of opinion.
For reference, the paper introduced movestay is
https://www.stata-journal.com/sjpdf....iclenum=st0071
Nobuya Fukugawa
Here is the code I used.
---copy starts---
probit d x z
predict xb, xb
gen lambda = normalden(xb) / normal(xb) if treat== 1
replace lambda = -normalden(xb) / (1- normal(xb)) if treat== 0
gen lambda1 = lambda
gen lambda0 = -normalden(xb) / (1- normal(xb)) if treat== 0
regress y x i.id i.year lambda1 if treat== 1
regress y x i.id i.year lambda0 if treat== 0
---copy ends---
Notes
*lambda= inverse Mills ratio. A coefficient of lambda represents co-variance of the error term of selection equation, u, and the error term of either of the main equations, ε1 or ε0.
** In movestay command, rho is correlation coefficient between u and ε1 or ε0. Sigma is standard deviation of ε1 or ε0. Variance of u is assumed to be one. Coefficient of lambda1=sigma1*rho1. Coefficient of lambda0=sigma0*rho0
Having estimated the coefficient of lambda, I need to know the followings.
Q1: Is rho of movestay is significant when estimated coefficient of lambda is significant?
Q2: How do I estimate rho and sigma of movestay separately and manually?
Any help would be appreciated.
I do recognize movestay is a user generated program, but I just would like to have a broad spectrum of opinion.
For reference, the paper introduced movestay is
https://www.stata-journal.com/sjpdf....iclenum=st0071
Nobuya Fukugawa
Comment