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

  5. 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 …

  6. 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 …

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

  8. 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 …

  9. 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 = …

  10. How to extract the regression coefficient from statsmodels.api?

    Nov 20, 2017 · Cribbing from this answer Converting statsmodels summary object to Pandas Dataframe, it seems that the result.summary () is a set of tables, which you can export as html …