statsmodels Questions
1
Solved
I'm using statsmodels to make OLS estimates. The results can be studied in the console using print(results.summary()). I'd like to store the very same table as a .png file. Below is a snippet with ...
Breathtaking asked 10/10, 2017 at 10:8
1
Solved
I am currently using from pandas.stats.plm import PanelOLS to run Panel regressions. I am needing to switch to statsmodel so that I can ouput heteroskedastic robust results. I have been unable to f...
Mccracken asked 16/5, 2016 at 10:47
0
I am exploring statsmodels.imputation.mice package to use for imputing missing values. I haven't seen any example of its usage, though, outside of http://www.statsmodels.org.
From what I gather, on...
Peter asked 13/9, 2017 at 22:45
0
I am comparing SARIMAX fitting results between R (3.3.1) forecast package (7.3) and Python's (3.5.2) statsmodels (0.8).
The R-code is:
library(forecast)
data("AirPassengers")
Arima(AirPassenge...
Hydrophone asked 6/9, 2017 at 9:43
1
I am having a problem performing Multiple Regression on a dataset containing around 7500 data points with missing data (NaN) in some columns and rows. There is at least one NaN value in each row. S...
Vexation asked 7/8, 2017 at 11:24
1
It seems to be a common problem but none of the answers seems help. The error is popping up when installing statsmodels with in Windows 10 (python 3.6.2 installed):
python setup.py install
Befor...
Anthracosilicosis asked 3/8, 2017 at 19:17
2
I am decomposing multiple time series using the seasonality decomposition offered by statsmodels.Here is the code and the corresponding output:
def seasonal_decompose(item_index):
tmp = df2.loc[d...
Dread asked 19/7, 2017 at 7:43
3
Solved
Say I have a dataframe (let's call it DF) where y is the dependent variable and x1, x2, x3 are my independent variables. In R I can fit a linear model using the following code, and the . will inclu...
Gunnery asked 13/3, 2014 at 19:5
2
Solved
I would love to use a linear LASSO regression within statsmodels, so to be able to use the 'formula' notation for writing the model, that would save me quite some coding time when working with many...
Machinate asked 17/4, 2017 at 7:11
1
Solved
I'm trying to wrap my head around ARIMA forecasting using Python and Statsmodels. Specifically, for the ARIMA algorithm to work, the data needs to be made stationary via differencing (or similar me...
Wingover asked 7/6, 2017 at 17:3
2
Is there a way to put an l2-Penalty for the logistic regression model in statsmodel through a parameter or something else? I just found the l1-Penalty in the docs but nothing for the l2-Penalty.
Stoltz asked 21/5, 2016 at 6:44
1
Solved
In Statsmodels I can fit my model using
import statsmodels.api as sm
X = np.array([22000, 13400, 47600, 7400, 12000, 32000, 28000, 31000, 69000, 48600])
y = np.array([0.62, 0.24, 0.89, 0.11, 0.18...
Tilford asked 1/6, 2017 at 8:15
2
Solved
I just began working on time series analysis using statsmodels. I have a dataset with dates and values (for about 3 months). I am facing some issues with providing the right order to the ARIMA mode...
Graphophone asked 19/6, 2014 at 22:1
1
Solved
I am studying the ARIMA models with the following tutorial: https://www.digitalocean.com/community/tutorials/a-guide-to-time-series-forecasting-with-arima-in-python-3#step-5-—-fitting-an-arima-time...
Githens asked 29/5, 2017 at 15:19
2
Solved
Say I fit a model in statsmodels
mod = smf.ols('dependent ~ first_category + second_category + other', data=df).fit()
When I do mod.summary() I may see the following:
Warnings:
[1] The conditio...
Gummite asked 4/9, 2014 at 22:47
2
A bit new here but trying to get a statsmodel ARMA prediction tool to work. I've imported some stock data from Yahoo and gotten the ARMA to give me fitting parameters. However when I use the predic...
Zackzackariah asked 20/3, 2013 at 3:58
2
Solved
Reviewing linear regressions via statsmodels OLS fit I see you have to use add_constant to add a constant '1' to all your points in the independent variable(s) before fitting. However my only under...
Parrott asked 31/12, 2016 at 2:8
2
Solved
I'm experimenting to decide if a time-series (as in, one list of floats) is correlated with itself. I've already had a play with the acf function in statsmodels (http://statsmodels.sourceforge.net/...
Rickierickman asked 10/4, 2017 at 11:33
3
Solved
I am trying to predict a time series in python statsmodels ARIMA package with the inclusion of an exogenous variable, but cannot figure out the correct way to insert the exogenous variable in the p...
Brattishing asked 30/7, 2014 at 18:23
5
For the given data, I want to set the outlier values (defined by 95% confidense level or 95% quantile function or anything that is required) as nan values. Following is the my data and code that I ...
Photomural asked 12/3, 2014 at 14:7
2
Solved
I would like to estimate an IV regression model using many interactions with year, demographic, and etc. dummies. I can't find an explicit method to do this in Pandas and am curious if anyone has t...
Chader asked 21/10, 2015 at 10:42
1
Solved
I have a time-series signal I would like to decompose in Python, so I turned to statsmodels.seasonal_decompose(). My data has frequency of 48 (half-hourly). I was getting the same error as this que...
Eijkman asked 23/2, 2017 at 20:40
1
Solved
I'm experimenting with negative binomial regression using Python. I found this example using R, along with a data set:
http://www.karlin.mff.cuni.cz/~pesta/NMFM404/NB.html
I tried to replicate th...
Community asked 16/2, 2017 at 15:0
1
Solved
I'm new to Python and have been an R User. I am getting VERY different results from a simple regression model when I build it in R vs. when I execute the same thing in iPython.
The R-Squared, The...
Acicular asked 20/1, 2017 at 14:20
2
Solved
After i developed my little ARMAX-forecasting model for in-sample analysis i´d like to predict some data out of sample.
The time series i use for forecasting calculation starts at 2013-01-01 and ...
Whyalla asked 13/1, 2015 at 21:11
© 2022 - 2024 — McMap. All rights reserved.