I’ve looped over 20 imputations, stored the onview coefficient in a small frame, computed the across‐imputation mean, and then plotted
But I get only the points and lines—no numeric labels at the mean. What am I missing? Any advice would be greatly appreciated!
Code:
frame coefs { quietly summarize onview, meanonly local mean_onview = r(mean) twoway /// (scatter onview imp) /// // the 20 points (function y=`mean_onview', range(1 20) lpattern(dot)), /// // dotted mean‐line yline(0, lpattern(dash)) /// // zero‐line title("Coefficient on onview Across 20 Imputations") /// xlabel(1(1)20, grid) /// ylabel(, grid) /// xtitle("Imputation #") /// ytitle("Estimate of onview") /// legend(off) }
Comment