About 1,030,000 results
Open links in new tab
  1. confidence and prediction intervals with StatsModels

    Jul 10, 2013 · I do this linear regression with StatsModels: import numpy as np import statsmodels.api as sm from statsmodels.sandbox.regression.predstd import …

  2. How to retrieve model estimates from statsmodels?

    How to retrieve model estimates from statsmodels? Asked 7 years, 11 months ago Modified 5 years, 5 months ago Viewed 42k times

  3. How to interpret the output of statsmodels model.summary () for ...

    Dec 28, 2022 · I'm using the statsmodels library to check for the impact of confounding variables on a dependent variable by performing multivariate linear regression: model = ols (f' …

  4. Statsmodel Ordinal Model Ordered Model - Cross Validated

    Oct 3, 2024 · I'm trying to fit an ordered logistic regression on Python statsmodel using statsmodels.miscmodels.ordinal_model.OrderedModel. I'm wrapping my head around this but …

  5. Calculating variance inflation factor for logistic regression using ...

    Jul 1, 2020 · I am making a logistic regression model using Statsmodels while following the book "Discovering statistics using R" by Andy Field, Jeremy Miles, and Zoë Field . While …

  6. ImportError: No module named statsmodels - Stack Overflow

    Aug 3, 2012 · great answer. but why pip3 install statsmodels installs the module but then inside python3 it cannot be imported? I only managed to solve this problem using python 3-m pip …

  7. statsmodels - To fit Linear regression Model with and without …

    Mar 16, 2021 · import pandas as pd import numpy as np import matplotlib.pyplot as plt from sklearn import linear_model import statsmodels.formula.api as smf import numpy as np x1 = …

  8. r - Variance Inflation Factor in Python - Stack Overflow

    81 As mentioned by others and in this post by Josef Perktold, the function's author, variance_inflation_factor expects the presence of a constant in the matrix of explanatory …

  9. How can I train a model in statsmodels? - Stack Overflow

    Aug 26, 2021 · import statsmodels.formula.api as sm sm.ols('y~x1+x2+x3', data=df).fit() There is no need to say how dangerous is to build a model without a test dataset. My question here is …

  10. How to plot statsmodels linear regression (OLS) cleanly

    Statsmodels has a variety of methods for plotting regression (a few more details about them here) but none of them seem to be the super simple "just plot the regression line on top of your data" …