IVRegressionResults.load()

statsmodels.sandbox.regression.gmm.IVRegressionResults.load classmethod IVRegressionResults.load(fname) load a pickle, (class method) Parameters: fname : string or filehandle fname can be a string to a file path or filename, or a filehandle. Returns: unpickled instance :

IVRegressionResults.predict()

statsmodels.sandbox.regression.gmm.IVRegressionResults.predict IVRegressionResults.predict(exog=None, transform=True, *args, **kwargs) Call self.model.predict with self.params as the first argument. Parameters: exog : array-like, optional The values for which you want to predict. transform : bool, optional If the model was fit via a formula, do you want to pass exog through the formula. Default is True. E.g., if you fit a model y ~ log(x1) + log(x2), and transform is True, then you can p

IVRegressionResults.get_robustcov_results()

statsmodels.sandbox.regression.gmm.IVRegressionResults.get_robustcov_results IVRegressionResults.get_robustcov_results(cov_type='HC1', use_t=None, **kwds) create new results instance with robust covariance as default Parameters: cov_type : string the type of robust sandwich estimator to use. see Notes below use_t : bool If true, then the t distribution is used for inference. If false, then the normal distribution is used. kwds : depends on cov_type Required or optional arguments for ro

IVRegressionResults.initialize()

statsmodels.sandbox.regression.gmm.IVRegressionResults.initialize IVRegressionResults.initialize(model, params, **kwd)

IVRegressionResults.cov_params()

statsmodels.sandbox.regression.gmm.IVRegressionResults.cov_params IVRegressionResults.cov_params(r_matrix=None, column=None, scale=None, cov_p=None, other=None) Returns the variance/covariance matrix. The variance/covariance matrix can be of a linear contrast of the estimates of params or all params multiplied by scale which will usually be an estimate of sigma^2. Scale is assumed to be a scalar. Parameters: r_matrix : array-like Can be 1d, or 2d. Can be used alone or with other. column :

IVRegressionResults.f_test()

statsmodels.sandbox.regression.gmm.IVRegressionResults.f_test IVRegressionResults.f_test(r_matrix, cov_p=None, scale=1.0, invcov=None) Compute the F-test for a joint linear hypothesis. This is a special case of wald_test that always uses the F distribution. Parameters: r_matrix : array-like, str, or tuple array : An r x k array where r is the number of restrictions to test and k is the number of regressors. It is assumed that the linear combination is equal to zero. str : The full hypothes

IVRegressionResults.compare_lm_test()

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

IVRegressionResults.conf_int()

statsmodels.sandbox.regression.gmm.IVRegressionResults.conf_int IVRegressionResults.conf_int(alpha=0.05, cols=None) Returns the confidence interval of the fitted parameters. Parameters: alpha : float, optional The alpha level for the confidence interval. ie., The default alpha = .05 returns a 95% confidence interval. cols : array-like, optional cols specifies which confidence intervals to return Notes The confidence interval is based on Student?s t-distribution.

IVRegressionResults.compare_lr_test()

statsmodels.sandbox.regression.gmm.IVRegressionResults.compare_lr_test IVRegressionResults.compare_lr_test(restricted, large_sample=False) Likelihood ratio 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. large_sample : bool Flag indic

IVGMMResults.wald_test()

statsmodels.sandbox.regression.gmm.IVGMMResults.wald_test IVGMMResults.wald_test(r_matrix, cov_p=None, scale=1.0, invcov=None, use_f=None) Compute a Wald-test for a joint linear hypothesis. Parameters: r_matrix : array-like, str, or tuple array : An r x k array where r is the number of restrictions to test and k is the number of regressors. It is assumed that the linear combination is equal to zero. str : The full hypotheses to test can be given as a string. See the examples. tuple : A tup