I am trying to compare a linear vs quadratic predictive margins in one graph. However, I am trying to show the confidence intervals for both curves but can’t seem to find the correct code. The following code I use produces curves without confidence intervals:
Code:
reg csh_sh age income qui margins, at(age=(18(7)90)) noci saving(x1, replace) reg csh_sh c.age##c.age income margins, at(age=(18(7)90)) noci saving(x2, replace) qui combomarginsplot x1 x2 , noci plotdim(_filenumber) label("Linear" "Quadratic") name(fixed, replace)
0 Response to Code for including confidence intervals on both curves
Post a Comment