Dear all,
I am working with mi data and plan to use "coefplot". Therefor I want to save results in models using "eststo".
I have the following syntax which ist working fine with metric and dummy variables:
est store m1a
eststo: mi est, post vceok esampvaryok noupdate: svy: reg netwealth_ihs selfemp transfer hh_size_emp children17 if country==04
The problem now is, that "selfemp" describes a categorical var and I would like to get the coefficients for each category of selfemp displayed separately in the output. I tried "i.selfempref" and "c.selfempref" but it does not work with eststo:
est store m1a
eststo: mi est, post vceok esampvaryok noupdate: svy: reg netwealth_ihs i.selfemp transfer hh_size_emp children17 if country==04
Does anyone have a solution for this or knows a different way to save mi data regression models with categorical variables?
Thanking you for any help or suggestions
Sophie
Related Posts with Getting results for a categorical variable with eststo and mi data
How to erase multiple graphs from file?Hello I am generating several charts but would like to delete after graph combine. I have tried th…
Solvenl - Optimize for 2 unknown variables (in Mata)Hi all, i try to solve the Black-Scholes-Merton formula for two unknwons: Asset Value & Asset Vo…
Save a variable name as macro conditional on somethingHello everyone, I have a data set with 5 indicators. I would like to save as a macro, for each "clu…
doubt in svyset for a 3-stage samplingHello everyone, I'm analyzing some country-level data that was sampled in the following way: 1) Co…
Collapsing with class numerosity as weightDear Statalist, I am working with a large dataset (30 mln obs, 1979-2018) and would like to collaps…
Subscribe to:
Post Comments (Atom)
0 Response to Getting results for a categorical variable with eststo and mi data
Post a Comment