statsmodels.sandbox.regression.gmm.IVRegressionResults.compare_lm_test
IVRegressionResults.compare_lm_test(restricted, demean=True, use_lr=False)
Use Lagrange Multiplier test to test whether restricted model is correct Parameters:
restricted : Result instance The restricted model is assumed to be nested in the current model. The result instance of the restricted model is required to have two attributes, residual sum of squares, ssr, residual degrees of freedom, df_resid. demean : bool Fl