- clear
- sysuse auto,clear
- regress price c.length##c.mpg //调节效应回归
- est sto regression //保存结果
- //分别求自变量与调节变量加减一个标准差的值
- foreach v of var length mpg {
- su `v' if e(sample)
- local low_`v'=r(mean)-r(sd)
- local high_`v'=r(mean)+r(sd)
- }
- est restore regression
- //调取保存的回归结果
- margins,at(mpg=(`low_mpg' `high_mpg') length = (`low_length' `high_length')) //计算边际效应
- *画边际效应图
- marginsplot , xlabel(`low_mpg' "Low IV" `high_mpg' "High IV") ///
- ytitle("Dependent variable") ///
- ylabel(2000(1000)9000, angle(horizontal) nogrid) ///
- graphregion(color(white)) plotregion(margin(l+8 r+8)) ///
- legend(order(1 "LOW" 2 "HIGH") size(small) col(1) position(11) ring(0) region(fcolor(none) lpattern(blank))) ///
- title("") noci
我的问题是,现在我想①把两条线条的颜色全部改为黑色,②然后一条为实线 另一条为虚线,③把线条的两端一个为圆形,另一个改为正方形(或者别的形状,反正就是要把两条线区分开),并且颜色都是黑色
请问我该如何改写我的code呢??