Hi everyone,
I was wondering to know how can I combine the below four margins commands in a single one. I would like to use outreg2 command after the margins to obtain the marginal effects in a word document. Running the below commands separately gives me four separate outputs and I would like to avoid it. Thanks.
Nader
*marginal effects
margins, dydx(*) predict(p00) post // healthy and alive
margins, dydx(*) predict(p01) post //healthy and dead
margins, dydx(*) predict(p10) post //unhealthy and alive
margins, dydx(*) predict(p11) post //unhealthy and dead
*outreg2 command
outreg2 using margins.doc, word se dec(2) replace ctitle(Marginal effects)
Related Posts with Obtaining marginal effects for all possible predicts
Help with Stata Coding (Urgent!)Nothing …
PSID - Generating a household IDI am using 10 waves of the PSID data with the aim of analysing trends in household charitable giving…
How to make it as a program?Hi All, I am trying to make this as a program. Any help? Below is my code. Thanks clear set seed 12…
Creating an indicator variable from multiple, non-mutually exclusive, dummy variablesHi! I'm trying to create an indicator variable from several dummy variables (which are not mutually …
Generalized DiD: How will the regression equation look like?Hi guys, I´m setting up an generalized DiD model. The policy is adopted at different times (two dif…
Subscribe to:
Post Comments (Atom)
0 Response to Obtaining marginal effects for all possible predicts
Post a Comment