ARResults.f_test()

statsmodels.tsa.ar_model.ARResults.f_test ARResults.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 hypotheses to test can be given as a s

NonlinearIVGMM.start_weights()

statsmodels.sandbox.regression.gmm.NonlinearIVGMM.start_weights NonlinearIVGMM.start_weights(inv=True)

Linear Regression

Linear Regression Linear models with independently and identically distributed errors, and for errors with heteroscedasticity or autocorrelation. This module allows estimation by ordinary least squares (OLS), weighted least squares (WLS), generalized least squares (GLS), and feasible generalized least squares with autocorrelated AR(p) errors. See Module Reference for commands and arguments. Examples # Load modules and data import numpy as np import statsmodels.api as sm spector_data = sm.datas

OLSResults.get_robustcov_results()

statsmodels.regression.linear_model.OLSResults.get_robustcov_results OLSResults.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 robust covariance c

PoissonGMLE.hessian()

statsmodels.miscmodels.count.PoissonGMLE.hessian PoissonGMLE.hessian(params) Hessian of log-likelihood evaluated at params

graphics.functional.fboxplot()

statsmodels.graphics.functional.fboxplot statsmodels.graphics.functional.fboxplot(data, xdata=None, labels=None, depth=None, method='MBD', wfactor=1.5, ax=None, plot_opts={}) [source] Plot functional boxplot. A functional boxplot is the analog of a boxplot for functional data. Functional data is any type of data that varies over a continuum, i.e. curves, probabillity distributions, seasonal data, etc. The data is first ordered, the order statistic used here is banddepth. Plotted are then the

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

iolib.foreign.savetxt()

statsmodels.iolib.foreign.savetxt statsmodels.iolib.foreign.savetxt(fname, X, names=None, fmt='%.18e', delimiter=' ') [source] Save an array to a text file. This is just a copy of numpy.savetxt patched to support structured arrays or a header of names. Does not include py3 support now in savetxt. Parameters: fname : filename or file handle If the filename ends in .gz, the file is automatically saved in compressed gzip format. loadtxt understands gzipped files transparently. X : array_like

regression.linear_model.GLSAR()

statsmodels.regression.linear_model.GLSAR class statsmodels.regression.linear_model.GLSAR(endog, exog=None, rho=1, missing='none', **kwargs) [source] A regression model with an AR(p) covariance structure. Parameters: endog : array-like 1-d endogenous response variable. The dependent variable. exog : array-like A nobs x k array where nobs is the number of observations and k is the number of regressors. An intercept is not included by default and should be added by the user. See statsmodel

OLSResults.f_test()

statsmodels.regression.linear_model.OLSResults.f_test OLSResults.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 hypotheses to test can be