OLS.hessian()

statsmodels.regression.linear_model.OLS.hessian OLS.hessian(params) The Hessian matrix of the model

OLS.from_formula()

statsmodels.regression.linear_model.OLS.from_formula classmethod OLS.from_formula(formula, data, subset=None, *args, **kwargs) Create a Model from a formula and dataframe. Parameters: formula : str or generic Formula object The formula specifying the model data : array-like The data for the model. See Notes. subset : array-like An array-like object of booleans, integers, or index values that indicate the subset of df to use in the model. Assumes df is a pandas.DataFrame args : extra a

OLS.fit_regularized()

statsmodels.regression.linear_model.OLS.fit_regularized OLS.fit_regularized(method='coord_descent', maxiter=1000, alpha=0.0, L1_wt=1.0, start_params=None, cnvrg_tol=1e-08, zero_tol=1e-08, **kwargs) Return a regularized fit to a linear regression model. Parameters: method : string Only the coordinate descent algorithm is implemented. maxiter : integer The maximum number of iteration cycles (an iteration cycle involves running coordinate descent on all variables). alpha : scalar or array-

OLS.fit()

statsmodels.regression.linear_model.OLS.fit OLS.fit(method='pinv', cov_type='nonrobust', cov_kwds=None, use_t=None, **kwargs) Full fit of the model. The results include an estimate of covariance matrix, (whitened) residuals and an estimate of scale. Parameters: method : str Can be ?pinv?, ?qr?. ?pinv? uses the Moore-Penrose pseudoinverse to solve the least squares problem. ?qr? uses the QR factorization. Returns: A RegressionResults class instance. : See also regression.RegressionResu

NormExpan_gen.var()

statsmodels.sandbox.distributions.extras.NormExpan_gen.var NormExpan_gen.var(*args, **kwds) Variance of the distribution Parameters: arg1, arg2, arg3,... : array_like The shape parameter(s) for the distribution (see docstring of the instance object for more information) loc : array_like, optional location parameter (default=0) scale : array_like, optional scale parameter (default=1) Returns: var : float the variance of the distribution

NormExpan_gen.std()

statsmodels.sandbox.distributions.extras.NormExpan_gen.std NormExpan_gen.std(*args, **kwds) Standard deviation of the distribution. Parameters: arg1, arg2, arg3,... : array_like The shape parameter(s) for the distribution (see docstring of the instance object for more information) loc : array_like, optional location parameter (default=0) scale : array_like, optional scale parameter (default=1) Returns: std : float standard deviation of the distribution

NormExpan_gen.stats()

statsmodels.sandbox.distributions.extras.NormExpan_gen.stats NormExpan_gen.stats(*args, **kwds) Some statistics of the given RV Parameters: arg1, arg2, arg3,... : array_like The shape parameter(s) for the distribution (see docstring of the instance object for more information) loc : array_like, optional location parameter (default=0) scale : array_like, optional (discrete RVs only) scale parameter (default=1) moments : str, optional composed of letters [?mvsk?] defining which moments

NormExpan_gen.sf()

statsmodels.sandbox.distributions.extras.NormExpan_gen.sf NormExpan_gen.sf(x, *args, **kwds) Survival function (1-cdf) at x of the given RV. Parameters: x : array_like quantiles arg1, arg2, arg3,... : array_like The shape parameter(s) for the distribution (see docstring of the instance object for more information) loc : array_like, optional location parameter (default=0) scale : array_like, optional scale parameter (default=1) Returns: sf : array_like Survival function evaluated

NormExpan_gen.rvs()

statsmodels.sandbox.distributions.extras.NormExpan_gen.rvs NormExpan_gen.rvs(*args, **kwds) Random variates of given type. Parameters: arg1, arg2, arg3,... : array_like The shape parameter(s) for the distribution (see docstring of the instance object for more information). loc : array_like, optional Location parameter (default=0). scale : array_like, optional Scale parameter (default=1). size : int or tuple of ints, optional Defining number of random variates (default=1). Returns:

NormExpan_gen.ppf()

statsmodels.sandbox.distributions.extras.NormExpan_gen.ppf NormExpan_gen.ppf(q, *args, **kwds) Percent point function (inverse of cdf) at q of the given RV. Parameters: q : array_like lower tail probability arg1, arg2, arg3,... : array_like The shape parameter(s) for the distribution (see docstring of the instance object for more information) loc : array_like, optional location parameter (default=0) scale : array_like, optional scale parameter (default=1) Returns: x : array_like