tidyverts / fabletools

General fable features useful for extension packages
http://fabletools.tidyverts.org/
89 stars 31 forks source link

Lagged predictor forecasting and Scenario-based forecasting #318

Open Roy-Forethought opened 3 years ago

Roy-Forethought commented 3 years ago

Hi, I've run into some issues and wanted to clarify two points.

Apologies if I have left some information out and thank you for any help.

mitchelloharawild commented 3 years ago
  1. Future values should not be required when forecasting the next 3 steps, as these values should be stored within the model object. I'm not sure (I don't think) if this is currently implemented to allow for forecasting without new_data, but this would be a useful improvement. Until this works, you can simply use new_data with NA values for the future regressors.
  2. The 'percentage increase' from the textbook is referring to the definition of Income, Savings, and Unemployment - all of which are percentage changes. The scenarios() function simply allows multiple new_data inputs to the forecast() (and generate() function - it doesn't do any calculations like percentage changes.