在stata中如何进行回归分析

时间:2024-10-12 21:27:27

1、生成一个自变量和一个因变量

在stata中如何进行回归分析

2、点击Statisti罕铞泱殳cs|linear model and related|linear regression菜单

在stata中如何进行回归分析

3、在弹出的regress中设置相关变量,然后再点确定。如下图:

在stata中如何进行回归分析

4、在结果界面中,_cons为.5205279表示回归截距,说明回归方程具有统计学意义。R-squared和Adj R-squared分别为0.9905和0.9893,说明回归方程拟合效果很好

在stata中如何进行回归分析

5、回归拟合图。点击Statist坡纠课柩ics|linear model and related|Regression diagnostics|Added-variable plot

在stata中如何进行回归分析

6、在弹出的avplot/avplots中,选择“all variables”,点确定

在stata中如何进行回归分析

7、结果如下图

在stata中如何进行回归分析
© 手抄报圈