regress incmonth educ_y if incmonth>=0 &incmonth<10000 /*model1*/
regress lnincmontheduc_y if incmonth>=0 & incmonth<10000 /*model 2*/
regress lnincmontheduc_y if incmonth>0 &incmonth<10000 /*model 3*/
regress lnincmonth educ_y f_educ0 if incmonth>0 & incmonth<10000 /*model 4(加入控制变量)*/
predict yhat_3 ife(sample)
predict ehat_3 ife(sample),residual
label variable yhat_3"正式教育年限对上月收入对数的预测值"
label variable ehat_3"正式教育年限对上月收入对数的预测误差"
做了三组模型,老师说这个predict要跟在regress后面,那么当加入控制变量 f_educ0,predict应该怎么编程序?还能预测吗?好凌乱。。。求高人指点,小女子不胜感激!!!