Dear Statalisters,
I am using ivregress command with a binary endogenous variable.Code is given below.
ivregress 2sls AgeatMar medu42 medu43 medu44 sibshipsize GenroleN (Compl_cl8 = Fac_School) , first
where Ageat_Mar is continuous and Compl_cl8 is binary endogenous variable.
I would like to calculate the predicted mean for Compl_cl8.For that, I have used margins.
margins, dydx(Compl_cl8) atmeans
I am afraid I am using wrong margins command. Please suggest stata code for calculation of predicted probability for binary endogenous regressor(for ivregress)
Any further discussion on this thread will be appreciated.
I am using ivregress command with a binary endogenous variable.Code is given below.
ivregress 2sls AgeatMar medu42 medu43 medu44 sibshipsize GenroleN (Compl_cl8 = Fac_School) , first
where Ageat_Mar is continuous and Compl_cl8 is binary endogenous variable.
I would like to calculate the predicted mean for Compl_cl8.For that, I have used margins.
margins, dydx(Compl_cl8) atmeans
I am afraid I am using wrong margins command. Please suggest stata code for calculation of predicted probability for binary endogenous regressor(for ivregress)
Any further discussion on this thread will be appreciated.
Comment