Skip to content Skip to sidebar Skip to footer
Showing posts with the label Statsmodels

Why Can't I Import Statsmodels Directly?

I'm certainly missing something very obvious here, but why does this work: a = [0.2635,0.654654… Read more Why Can't I Import Statsmodels Directly?

Print Ols Regression Summary To Text File

I am running OLS regression using pandas.stats.api.ols using a groupby with the following code: fro… Read more Print Ols Regression Summary To Text File

Statsmodels Raises Typeerror: Ufunc 'isfinite' Not Supported For The Input Types

I am applying backward elimination using statsmodels.api and the code gives this error `TypeError: … Read more Statsmodels Raises Typeerror: Ufunc 'isfinite' Not Supported For The Input Types

Weekday As Dummy / Factor Variable In A Linear Regression Model Using Statsmodels

The question: How can I add a dummy / factor variable to a model using sm.OLS()? The details: Data … Read more Weekday As Dummy / Factor Variable In A Linear Regression Model Using Statsmodels

Best Model For Variable Selection With Big Data?

I posted a question earlier about some code but now I realize I should be more broad with the gener… Read more Best Model For Variable Selection With Big Data?

How To Get R-squared For Robust Regression (rlm) In Statsmodels?

When it comes to measuring goodness of fit - R-Squared seems to be a commonly understood (and accep… Read more How To Get R-squared For Robust Regression (rlm) In Statsmodels?

Statsmodels With Partly Identified Model

I am trying to run a regression where only some of the coefficients can be identified: data = np.ar… Read more Statsmodels With Partly Identified Model

Python Statsmodels Ols: How To Save Learned Model To File

I am trying to learn an ordinary least squares model using Python's statsmodels library, as des… Read more Python Statsmodels Ols: How To Save Learned Model To File