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
Chosing correct analysis?Hi I'm rather new to statistical analysis and I'm currently doing medical research for the first ti…
Panel data - how to analyse regional differences (over time)?Hi all, I am new here and I wish to thank you for your help during these years of university. I am …
estout - how to keep interactions (of time series operators and indicators)Dear Statalisters, I am trying to output regression results to .tex using estout (from ssc, using S…
weighting dataI have an unbalanced panel data, and I'm trying to weight my sample to look like the population. sup…
create new variable with multiple conditionsHello expert stata I'm new to stata. I had an exercise from the class for analysing the data. the fi…
Subscribe to:
Post Comments (Atom)
0 Response to Combining mlabel margins and mlabel p values in one coefplot
Post a Comment