Here is my code:
ivmod = IV2SLS(y, None, df['VariableOne'], df['RandomVariable'])
res_2sls = ivmod.fit()
res_2sls.wu_hausman()
Here is the test result:
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
Am i doing this right? What do I make of the results?