2、reg price rep78 headroom trunk weight length,解释:对数据进行回归。
3、使用y的拟合值进行RESET检验,estat ovtest,发现p的拟合值为0.051这个数比较接近拒绝域,我们认为我们可能遗漏了高次项。
4、直接使用解释变量的高次项进行RESET检验,estat ovtest,rhs。解释:添加了选项rhs,发现在5%的水平上拒绝原假设,认为遗漏了高阶非线性项。
5、经过数次尝试之后,发现gen wight2=weight^2,reg price rep78 weight2 headroom trunk weight length,效果显著。
匿名回答于2021-04-02 04:37:34