Limit the range of forecast values for R forecast package

1.2k Views Asked by At

I am performing time series modeling and plotting the eventual forecasts using R's forecast package and the base plot() function.

The final forecasts are negative although this doesn't make sense for the data (the floor is 0). Is there a way for me to tell the forecast function to limit the y-value prediction?

1

There are 1 best solutions below

1
On

After writing it out, I helped myself find the right search terms. Here is the answer:

enter image description here

http://robjhyndman.com/hyndsight/forecasting-within-limits/