9,394 questions
0
votes
0
answers
41
views
Error in calibrate.lm() Only one independent variable allowed (r software)
In the beginning the calibrate.lm() function worked perfect to do the inverse prediction. Now it gives me this error: Only one independent variable allowed
I tried a lot of other options but a las!
...
Advice
0
votes
0
replies
47
views
How to constrain regression so one predictor has fixed influence (e.g. 70%) in time-series forecasting?
I’m forecasting a time-series economic indicator using a regression of percentage growth on lagged growth and another indicator’s growth.
My current model is:
lm(g_s ~ g_s_l1 + dlog_trnS)
However, ...
0
votes
0
answers
60
views
error $ operator is invalid for atomic vector when using predicts() in ordinal logistic regression
There is an example given by Benjamin Schlegel, how to use the predicts() function from the glm.predict package for ordinal and multinomial logistic regression. That is the example he gives on his ...
-2
votes
0
answers
90
views
How to Perform Rolling Window Regression on Three Panel Data Tables?
I have three panel data tables A, B, and C with the following structure:
Index: date
Columns: stock codes (e.g., S1, S2, ...)
Example structure of each table:
date
S1
S2
20100101
1
2
20100102
3
4
...
Advice
1
vote
1
replies
37
views
Small number of observations in Count Data
I have a practical question.
I am working with count data and apply ZINB regression due to its structure. My dataset has 174 observations. And for one of my hypothesis I split my sample into two ...
Tooling
0
votes
0
replies
38
views
Check AIC when response variable is built with cbind
I want to test the probability that a parent feeds one offspring depending on the effect of two predictive variables. I defined my response variable as cbind(feeds_per_offspring, (all_feeds - ...
1
vote
1
answer
85
views
XGBoost GPU regression fails at predict time with Check failed: dmat->Device() when training with tree_method='hist' and device='cuda'
I’m training an XGBRegressor on GPU and it fits successfully, but predict() fails depending on whether the input at prediction time is a NumPy array vs a pandas DataFrame (or whether I move between ...
Advice
0
votes
3
replies
108
views
How to force rms::redun to treat spline interaction terms as a single chunk?
I am performing a redundancy analysis using rms::redun() in R. My model includes an interaction between a binary treatment variable and a restricted cubic spline of a continuous variable: treatment * ...
Advice
0
votes
0
replies
32
views
Time-based regression: is it leakage if training includes snapshots closer to the event than those used at prediction?
I’m building a regression model that predicts the final number of vehicles booked for a ferry trip.
Each training row represents the state of bookings for a given trip N days before departure.
Example ...
2
votes
0
answers
117
views
multinom standard errors change when scaling variable
I have the following R code that performs a multinomial logistic regression.
When scaling birthweight from grams (original data) to kg (more similar scale as other variables and easier interpretation) ...
Advice
0
votes
2
replies
57
views
Detect non-linear regression patterns in multiple univariate analyses
I have a dataset with around 10,000 continuous variables (gene abundances) in 200 samples, and also some parameters of these samples (e.g., pH). I am trying to see if there are any genes whose ...
Advice
0
votes
1
replies
95
views
Regression analysis
How should I handle a mass-point in the dependent variable when running OLS regression in R?
I’m working with a a household expenditure dataset (Living Costs 2019) where the dependent variable is the ...
0
votes
0
answers
59
views
How to generate a simple ARIMA process with statsmodels
I am trying to generate an ARIMA process with statsmodels. I tried already different combinations but nothing works. There is also nothing in the documentation that could solve my problem. The ...
Tooling
0
votes
5
replies
143
views
Deming Regression R - Prediction/Confidence Interval and use of total least squares
I want to use deming regression for the calculation of a linear function between two variables which both have measurement errors. In addition, I have to assume that the regression goes through the ...
1
vote
1
answer
96
views
Testing equality of multivariate coefficients with linearHypothesis()
I would like to conduct a F-test (Wilks' Lambda test, ideally) to test the equality of the slope coefficients for a single independent variable on two dependent variables. Using the mtcars dataset, ...