这是我的代码:
ivmod = IV2SLS(y, None, df['VariableOne'], df['RandomVariable'])
res_2sls = ivmod.fit()
res_2sls.wu_hausman()
这是测试结果:
Wu-Hausman test of exogeneity
H0: All endogenous variables are exogenous
Statistic: 6.7774
P-value: 0.0096
Distributed: F(1,398)
WaldTestStatistic, id: 0x7fe9ff715d50
我这样做对吗?我对结果有何看法?