I am working on coefplot and would like to have p-value be assigned to the plot.
I found a code example from here: http://repec.sowi.unibe.ch/stata/coefplot/markers.html
However, instead of having a coefficient plot with pvalue as the markers, I received error messages:
"@pval not found
invalid syntax
r(111);"
This did not happen if I change mlabel to: "mlabel(@b)" to post coefficients as the marker label.
Is there any STATA user that could help me to get the above code to work? I am using STATA 14 IC.
Thanks
I found a code example from here: http://repec.sowi.unibe.ch/stata/coefplot/markers.html
Code:
sysuse auto, clear keep if rep78>=3 regress mpg headroom i.rep##i.foreign coefplot, xline(0) mlabposition(1) mlabgap(*2) /// mlabel("{it:p} = " + string(@pval,"%9.3f"))
"@pval not found
invalid syntax
r(111);"
This did not happen if I change mlabel to: "mlabel(@b)" to post coefficients as the marker label.
Is there any STATA user that could help me to get the above code to work? I am using STATA 14 IC.
Thanks
Comment