Hi, I'm writing a code to run a machine learning model (lasso, ridge, etc) and need to organize the dataset variables so that they are all aligned with the last date of the endogenous variable plus 1 (+1). Or more generally, plus h, where h is the forecast horizon. Can you help me wtih that?
Thanks a lot.
Machine Learning dataset
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13598
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Machine Learning dataset
Going to need a lot more information, and what you've done so far.
-
LeonardoMC
- Posts: 9
- Joined: Thu Jun 16, 2022 2:37 pm
Re: Machine Learning dataset
Hi, that is the first thing I'm trying to do. As an example, I need to shift down (x2 and x3) and shift up x4, to ensure all of them to be aligned at Mar-25, the date I'm forecasting. So, I'll have not to worry about lagging this variables later.
- Attachments
-
- example.xlsx
- (11.24 KiB) Downloaded 6175 times
Who is online
Users browsing this forum: No registered users and 2 guests
