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
gender changes in the panel surveyDear Statalist Community, due to my thesis I am allowed to work with stata. My dataset comes from a…
Running regressions with an index I createdHi all, I am running a regression on the impact of freedom in a country on socioeconomic developmen…
Transfering Kendal correlations into WordDear all contributors, I am calculating Kendal correlations of more than 100 variable couples and w…
Importing delimited csv with special characters including double quotesI am trying to import a large comma-delimited csv (~1M rows). Variables are bound by double quotes b…
Generating new columns for each unique value of a categorical variableDear All, The issue I am trying to resolve here is as follows- I have a dataset where customers pur…
Subscribe to:
Post Comments (Atom)
0 Response to Combining mlabel margins and mlabel p values in one coefplot
Post a Comment