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
Export matrix to excel. How to asign rows on a loopHello, I'm estimating a model where I have 74,000 equations, and I want to export the estimators to…
Using Loops with tabulationHi there, I never really learned how to use loops, but feel like in this scenario it might be useful…
Event study versus difference-in-difference.Dear All, I am trying to evaluate the impact of a treatment using difference-in-difference and even…
How to create individual panel data through merging two cross sectionsHello All I am in need of desperate help regarding my model. I have cross-section data done for two …
how to deal with '' xthenreg'' for dynamic threshold modelsDear all Finally we get the stata' command to deal with the endogeneity issue for threshold model, …
Subscribe to:
Post Comments (Atom)
0 Response to Obtaining marginal effects for all possible predicts
Post a Comment