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
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
Comment