models

models#

Module: models#

This package contains tools to specify, manipulate and select regression models.

ISLP.models.summarize(results, conf_int=False, level=None)#

Take a fit statsmodels and summarize it by returning the usual coefficient estimates, their standard errors, the usual test statistics and P-values as well as (optionally) confidence intervals.

Based on:

https://stackoverflow.com/questions/51734180/converting-statsmodels-summary-object-to-pandas-dataframe

Parameters:
resultsa results object
conf_intbool (optional)

Include 95% confidence intervals?