Dear Statalists,
My question is about combining 2 types of mlabels in one coefplot in Stata 15.
I created a coefplot that displays margins of a logistic regression with the following command:
. coefplot, xline(0) mlabel format(%9.2g) mlabposition(12) mlabgap(*2)
I would like to add the pvalues in the same coefplot in the following manner:
. coefplot, xline(0) mlabposition(2) mlabel(cond(@pval<.001, "***", cond(@pval<.01, "**", cond(@pval<.05, "*", "")))) note("* p < .05, ** p <.01, *** p <.001")
When I put both mlabel and mlabel(cond(@pval<.001, "***", cond(@pval<.01, "**", cond(@pval<.05, "*", "")))) note("* p < .05, ** p <.01, *** p <.001") in the same command, the p values are not displayed.
How can I combine the two mlabels in one coefplot?
Thanks a lot in advance!
Regards, Anouk
Related Posts with Combining mlabel margins and mlabel p values in one coefplot
Wrapping up twoway plots using loopHi, Using the codes below, I could nicely plot my data and retain my plots of interest using gr comb…
Issues with loop used to drop observationsHello, everyone, The data that I'm using has been delivered to us with duplicated patient IDs. Thes…
Calculate the difference of the value of one observation with the average value for observations in other groupsHi everyone, I have a question of how to use stata to calculate the difference of the value of one …
Summing dollar amount for each unique id for each yearstr50 year str27 state str29 district long regno str110 donortype str109 double amount "2009-2010" "…
The workflow of data cleanHi! Does anyone know how to make the data cleanning process automazation? Any time I got some new or…
Subscribe to:
Post Comments (Atom)
0 Response to Combining mlabel margins and mlabel p values in one coefplot
Post a Comment