About 1,010,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, 10 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. python - How to choose the correct arguments of statsmodels STL ...

    Feb 5, 2021 · If you have set a frequency in your index, statsmodels will inherit this frequency and automatically use this to determine a period. It makes use of the freq_to_period method …

  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. scikit-learn & statsmodels - which R-squared is correct?

    Feb 10, 2019 · For all practical purposes, these two values of R-squared produced by scikit-learn and statsmodels are identical. Let's go a step further, and try a scikit-learn model without …

  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. Ordinal logistic regression in Python - Cross Validated

    I would like to run an ordinal logistic regression in Python - for a response variable with three levels and with a few explanatory factors. The statsmodels package supports binary logit and …

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