Dear Statalister,
my first post, so forgive me if I get something wrong. My problem is this. By using e.g.
xtreg life_sat i.cat_min_age_at_child, vce(robust)
margins i.cat_min_age_at_child, atmeans cformat(%3.2f)
I can test how satisfied people are depending on the age at which they had their first child. Margins appear in a nice format, e.g. 7. 40 as the life satisfaction that people have when their first child was born when they 32 etc... In my marginsplot, it is exactly these values that I would use as marker labels. I am able to do so with the following command:
marginsplot, plotopts(connect(direct) mlabel(_margin)) recastci(rarea)
also possible:
marginsplot, plotopts(connect(direct) mlabel(y)) recastci(rarea)
However, the marker label for 32 then reads 7.399988 (the margins are not in a nice format).
The obvious solutions, e.g.
marginsplot, plotopts(connect(direct) mlabel(y, format(%3.2f)) recastci(rarea)
or
marginsplot, plotopts(connect(direct) mlabel(y) mlabstyle(%3.2f)) recastci(rarea)
have no effect. I cannot even change the format or the marker label in the graph editor. It looks like this:
Array
Is there any way to have the marker label displayed in a more "readable" format, such as %3.2f?
Thanks for you help!
Martin
Related Posts with marginsplot mlabel format values
Instrumental variable estimation for panel data in case of heteroskedasticity and weak instrumentsI have an unbalanced panel dataset (N=504, T=3) and I am trying to run instrumental variable regress…
over-identify testwhen i run the command (estat overid) i got the following error message (no overidentifying restrict…
Problem in running regression with beta/coefficient that are estimated based on month, year, and countryHi, I am currently working on a panel dataset (15 EU countries for 15 years). I have approximately …
Change in dependent variable suggests change in estimation methodI'd greatly appreciate any help with this. When regressing the following, a hausman test confirms th…
xtabond2: Model EvaluationDear Statalisters, I am working on determinants of corporate cash holdings with a panel dataset of …
Subscribe to:
Post Comments (Atom)
0 Response to marginsplot mlabel format values
Post a Comment