Hello,
I want to use gsme command for estimating three equations. the first two equations are selection equation and a probit model. If I can account for selection effect for these two equations, I would add the third equation later.
I want to know how in gsem we can use "heckprob" command or anything that can be used for estimating the two probabilities (selection and outcome dommy) together.
in the stata help for gsem, page 433, Heckman selection model, explains how to produce the same result as "heckman" when the outcome is a continuous variable.
Below, I have tried to follow the same procedure as for "heckman" in gsem, for the case when both the dependent variables of selection and outcome are dummy variables. I tried to transfer the results from the gsem procedure to what we can get from "heckprob", but the transfomation of the estimated variables cannot produce the "heckprob" results.
I was wondering if there is any procedure to produce the same results in gsem context as those that the command "heckprob", produces.
I greatly appreciate any help.
Here we can use the following data set from the example in the Stata help for "heckprob" command to check the results from gsem and "heckprob"
use http://www.stata-press.com/data/r13/school
*preparing data for heckman method in gsem:
gen vote_selec=0 if vote==1 /*Creates missing values for vote!=1 */
gen vote_noselec=0 if vote==0
gen private1=private
replace private1=. if vote==0
*gsem:
gsem (private1 <- years logptax L) (vote_selec <- years loginc logptax L@1, family(gaussian, udepvar(vote_noselec))), var(L@1 e.private1@a e.vote_selec@a)
*heckprob
. heckprob private years logptax, select(vote=years loginc logptax)
Using the guide line in the section "Heckman selection model" in page 433 of gsem help in stata, I cannot get the same "rho" and other parameters by using the functions introduced there to transfer the results from gsem to "heckman".
Please let me know if there is any way to do the same precidure as "Heckman" in gsem for "heckprob"
I also tried the following command using probit and linking both probit together by a latent variable "L":
gsem (private <- years logptax L , probit ) (vote <- years loginc logptax L@1,probit), var(L@1)
But i do not know is that a correct way to do it? How can we extract the selection issue (the correlation between two errors) from it? and is it any way to compare it with "heckprob"?
Any reference of guideline is appreciated.
Hossein
I want to use gsme command for estimating three equations. the first two equations are selection equation and a probit model. If I can account for selection effect for these two equations, I would add the third equation later.
I want to know how in gsem we can use "heckprob" command or anything that can be used for estimating the two probabilities (selection and outcome dommy) together.
in the stata help for gsem, page 433, Heckman selection model, explains how to produce the same result as "heckman" when the outcome is a continuous variable.
Below, I have tried to follow the same procedure as for "heckman" in gsem, for the case when both the dependent variables of selection and outcome are dummy variables. I tried to transfer the results from the gsem procedure to what we can get from "heckprob", but the transfomation of the estimated variables cannot produce the "heckprob" results.
I was wondering if there is any procedure to produce the same results in gsem context as those that the command "heckprob", produces.
I greatly appreciate any help.
Here we can use the following data set from the example in the Stata help for "heckprob" command to check the results from gsem and "heckprob"
use http://www.stata-press.com/data/r13/school
*preparing data for heckman method in gsem:
gen vote_selec=0 if vote==1 /*Creates missing values for vote!=1 */
gen vote_noselec=0 if vote==0
gen private1=private
replace private1=. if vote==0
*gsem:
gsem (private1 <- years logptax L) (vote_selec <- years loginc logptax L@1, family(gaussian, udepvar(vote_noselec))), var(L@1 e.private1@a e.vote_selec@a)
*heckprob
. heckprob private years logptax, select(vote=years loginc logptax)
Using the guide line in the section "Heckman selection model" in page 433 of gsem help in stata, I cannot get the same "rho" and other parameters by using the functions introduced there to transfer the results from gsem to "heckman".
Please let me know if there is any way to do the same precidure as "Heckman" in gsem for "heckprob"
I also tried the following command using probit and linking both probit together by a latent variable "L":
gsem (private <- years logptax L , probit ) (vote <- years loginc logptax L@1,probit), var(L@1)
But i do not know is that a correct way to do it? How can we extract the selection issue (the correlation between two errors) from it? and is it any way to compare it with "heckprob"?
Any reference of guideline is appreciated.
Hossein
Comment