Dear all,
I am running probit regressions to try and find the independent variables that influence my dependent variable. This means running multiple slightly different probit regressions (around 12). For better comparison on which model fits best I want to create a table including all the different models. To do this I am doing the following for each model:
probit res_ov fis_bal fis_exp panel pub_type inc_class start freq_an dep_var_class
estimates store m1, title(Model 1)
probit res_ov fis_bal fis_exp panel pub_type pub_class pub_year
estimates store m2, title(Model 2)
and so on.
estout m1 m2
works perfectly fine to create my table. However I am not interested in the coefficients but rather in the marginal effects of each variable. Hence, for each regression I also run
margins, dydx(*) atmeans
I tried storing them with using estpost margins, dydx(*) atmeans instead and then including them by specifying the table command with the cells option:
estout m1 m2, cells(margins(star fmt(3)) se(par))
As a results I no longer get the coefficients but rather an empty space where I want my marginal effects to be. This did not change when I replaced margins in the last equation with cmd, dydx or any other possible name for the margins.
Additionally I have a question about the table stata is giving me. Up until estout m1 m2 m3 m4 the table looks perfectly fine. But if I include more models the table puts those in a second row which makes evaluating the table very difficult. Is there a command that tells stata to put all models next to each other?
Thanks already for your help! I greatly appreciate it.
Charles
(I am using Stata on different computers with versions from 14 to 16 both on Windows and on Mac )
0 Response to Including Marginal Effects in a Table
Post a Comment