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 )
Related Posts with Including Marginal Effects in a Table
STATA stuck computing matchit resultsI am attempting to match two datasets, one of which is about 70 000 observations and the other maybe…
How to cluster nothing in a code?I have a code that is Code: did2s depvar [if] [in] [weight], first_stage(varlist) second_stage(var…
How to use factor variable i.year in XTSUR command?I have 3 questions regarding XTSUR 1: When I input something like XTSUR (y1 y2 y3 = x1 x2 i.year) It…
Why set maxvar is ignored?When I set maxvar and STATA return as below, can I ask why and the solution? Code: set matsize 110…
Seeking ideas for graphical representation of binary outcome dataHello all, I have a dataset (n=301) that describes the incidence of hypothermia (binary outcome) by …
Subscribe to:
Post Comments (Atom)
0 Response to Including Marginal Effects in a Table
Post a Comment