Questions tagged [statsmodels]
Statsmodels is a Python module that allows users to explore data, estimate statistical models, and perform statistical tests.
just wanted to check if I am doing this correctly. I am trying to obtain a one-step ahead out-of-sample forecast in a model with multiple exogeneous variables. In particular, I want to confirm if the ...
I am running a One-Way Anova using statsmodels, where a group-variable ('age_group') predicts the dependant variable ('score'). I then conduct pairwise t-tests (using t_test_pairwise) to examine ...
I recently began learning Python, but rather with a complex project I had already started in Excel. I have used different guides for the code I have used so far, tweaked to my needs.
I am using '...
What I was trying to do?
I was trying to analyze data using ordinal logistic regression. For that, I tried to import OrderedModel from statsmodels.miscmodels.ordinal_model as suggested by this doc.
I get a PatsyError that I am not sure how to resolve, when running a Marginal Regression model in Python. The documentation for the class in statsmodels is available here. I used similar code to ...
I am trying to plot my seasonal decomposition but have found the dates of the x-axis overlap extremely.
I have tried fig.autofmt_xdate() which seems to be the general suggestions and didn't have any ...
Below is some toy time series data:
I was reviewing the code for the Multivariate KDE in statsmodels, I choose this library because it has a theoretical basis for bandwidth selection which is the LSCV and MLCV, but upon checking the ...
I am getting an error when trying to use statsmodels .predict to predict my test values.
X_train, X_test, y_train, y_test = train_test_split(X_new_np, y, test_size=0.2, random_state=42)
logit = ...
I am using Statsmodel GLM model to perform a poisson regression. I have a dataset that looks like this:
Quantity Month cannibal_numbers category_performance
0 0.0 11 ...
I'm calculating variance inflation factors
from patsy import dmatrices
from statsmodels.stats.outliers_influence import variance_inflation_factor
y, X = dmatrices('A ~ B + C + D + E + F + G, data=df, ...
i am facing the following problem. I am fitting a mixed linear model with statsmodels using smf.mixedlm. I have gene expression data and i am fitting one model per gene over several conditions. The ...
Working with Statsmodels' Holt method and came across with a strange situation (maybe it is not a strange and just my lack of understanding of how Holt works). After fitting a model in sample and out ...
My dependent variable is full of 0s and 1s. It is in the train_label pandas dataframe, with the column name 'Offer Accepted'.
I am trying to train multiple time series models using the below code in Jupyter Notebook.
import statsmodels.api as sm
train_dict = dict() # A dictionary of ...