-
Login or Register
- Log in with
clear all sysuse auto, clear mkspline wght=weight, cubic reg price wght* i.foreign i.rep78 frame copy default tograph frame change tograph predictnl yhat = _b[_cons] + /// _b[wght1]*wght1 + /// _b[wght2]*wght2 + /// _b[wght3]*wght3 + /// _b[wght4]*wght4 , ci(lb ub) twoway__histogram_gen weight , percent gen(h x) twoway bar h x, barw(`r(width)') bcolor(%50) yaxis(1) yscale(alt axis(1)) || /// rarea lb ub weight, sort astyle(ci) acolor(%50) yaxis(2)|| /// line yhat weight, sort legend(off) yaxis(2) yscale(alt axis(2)) /// ytitle(predicted price, axis(2)) ylabel(,format(%9.0gc) axis(2))
Comment