I am running the following regression and then obtain a marginsplot
This provides me with the confidence interval - how can I obtain a similar plot with prediction intervals instead?
I have tried the following:
However, I get the following error: option stdf not allowed.
Any help to obtain the plot with prediction interval will be appreciated. Thank you.
Sincerely,
Chiara
Code:
xtset iso xtreg lny i.year c.x1##c.x1 x2, robust fe margins, at(x1 = (-0.7(2)33)) marginsplot, recast(line) recastci(rarea) plotopts(lcolor(dknavy)) ci1opts(color(ltblue)) graphregion(color(white))
I have tried the following:
Code:
predict yhat predict stdf, stdf
Any help to obtain the plot with prediction interval will be appreciated. Thank you.
Sincerely,
Chiara
Comment