Hello,
I'm plotting regression coefficients in a grouped bar graph. I would like to add the statistical significance of those coefficients as labels on each respective bar. I know how to do it with a twoway plot using the mlabel option, but I lose the ability to use over() over() to create my grouped bar graph. My real data has variables for regression coefficients and corresponding significance levels (e.g., "***", "**", "*"). Does anyone know how to add a custom label using the graph bar command, or how to apply over() over() in a twoway graph while also using mlabel? Example of what my data structure looks like and the desired grouped bar output (without the significance stars) can be seen here:
Thank you very much in advance for any insights.
Best,
Hélder
I'm plotting regression coefficients in a grouped bar graph. I would like to add the statistical significance of those coefficients as labels on each respective bar. I know how to do it with a twoway plot using the mlabel option, but I lose the ability to use over() over() to create my grouped bar graph. My real data has variables for regression coefficients and corresponding significance levels (e.g., "***", "**", "*"). Does anyone know how to add a custom label using the graph bar command, or how to apply over() over() in a twoway graph while also using mlabel? Example of what my data structure looks like and the desired grouped bar output (without the significance stars) can be seen here:
Code:
sysuse nlsw88, clear collapse wage, by(smsa married collgrad) reshape wide wage, i(married collgrad) j(smsa) gen stars0 = "***" gen stars1 = "**" graph bar wage0 wage1, /// over(married) over(collgrad)
Best,
Hélder
Comment