Hi @benjann
I'm not sure if this is the right forum. I was trying to make a figure where the significance of individual coefficients was immediately clear. I had a lot of coefficients near 0 so it wasn't visually obvious which coefficients were statistically significant (xrescale didn't help given the constraints of what I was trying to show).
Your solutions for adding info in the markers (here) didn't work in my case because I had quite a few coefficients on the screen.
I wanted to style the coefficients by their pvalue. I didn't see anything on your site that explicitly did this (maybe I missed it!), but when I combed through everything, I was able to put enough together to figure this out:
sysuse auto
regress price mpg trunk length turn
coefplot (, if(@pval<=0.05) pstyle(p1) label("pval<.05")) (, if(@pval>.05) pstyle(p2) label("pval>.05")) , drop(_cons)
This worked great, and I'm happy with it. In my case, there are many extra bells and whistles (multiple y variables, plotting interaction effects), but the above is the heart of things.
I wonder if adding a marker style by pval is something doable.
Hi @benjann
I'm not sure if this is the right forum. I was trying to make a figure where the significance of individual coefficients was immediately clear. I had a lot of coefficients near 0 so it wasn't visually obvious which coefficients were statistically significant (xrescale didn't help given the constraints of what I was trying to show).
Your solutions for adding info in the markers (here) didn't work in my case because I had quite a few coefficients on the screen.
I wanted to style the coefficients by their pvalue. I didn't see anything on your site that explicitly did this (maybe I missed it!), but when I combed through everything, I was able to put enough together to figure this out:
This worked great, and I'm happy with it. In my case, there are many extra bells and whistles (multiple y variables, plotting interaction effects), but the above is the heart of things.
I wonder if adding a marker style by pval is something doable.