我想知道是不是在stata里面只能对一般的线性回归做异方差和共线性的检测啊?
我查到这方面的command是比如说estat hettest 和 vif
但是好像只能在运行完 reg 就是线性检测后才可以,如果是我直接运行完logit模型,输入以上命令会显示not appropriate after regress, nocons;
use option uncentered to get uncentered VIFs
这样可以根据以下步骤:
FILE PROC filename of the TESTHET procedure file
MODEL: LOGIT
DEPVAR: Dependent variable (0-1 binary variable)
X: List of explanatory variables in the model (a constant term is assumed)
Z: List of variables in the error variance equation
EXEC TESTHET