4.5.5.1.2. statsmodels.iolib.summary.summary

statsmodels.iolib.summary.summary(self, yname=None, xname=None, title=0, alpha=0.05, returns='text', model_info=None)[source]
Parameters:

yname : string

optional, Default is Y

xname : list of strings

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

Confidance interval : (0,1) not implimented

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 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

conf_int calculated from normal dist.