Logo

statsmodels.genmod.generalized_linear_model.GLMResults.summary_old

GLMResults.summary_old(yname=None, xname=None, title='Generalized linear model', returns='text')[source]

Print a table of results or returns SimpleTable() instance which summarizes the Generalized linear model results.

Parameters :

yname : string

optional, Default is Y

xname : list of strings

optional, Default is X.# for # in p the number of regressors

title : string

optional, Defualt is ‘Generalized linear model’

returns : string

‘text’, ‘table’, ‘csv’, ‘latex’, ‘html’

Returns :

Defualt : :

returns=’print’ :

Prints the summarirized results

Option : :

returns=’text’ :

Prints the summarirized results

Option : :

returns=’table’ :

SimpleTable instance : summarizing the fit of a linear model.

Option : :

returns=’csv’ :

returns a string of csv of the results, to import into a spreadsheet

Option : :

returns=’latex’ :

Not implimented yet :

Option : :

returns=’HTML’ :

Not implimented yet :

Examples (needs updating) :

——– :

>>> import statsmodels.api as sm :

>>> data = sm.datasets.longley.load() :

>>> data.exog = sm.add_constant(data.exog) :

>>> ols_results = sm.OLS(data.endog, data.exog).results :

>>> print ols_results.summary() :

... :

Notes

stand_errors are not implimented. conf_int calculated from normal dist.

Previous topic

statsmodels.genmod.generalized_linear_model.GLMResults.summary

Next topic

statsmodels.genmod.generalized_linear_model.GLMResults.t

This Page