I have a series with some stock data that I want to grow at a given monthly rate.
The series (STOCK) has monthly data. I've created a scalar that holds my monthly growth rate (GROWTH).
I would like to create a second calculated series (STOCK_FORECAST) that starts with the last value in STOCK and grows it forward using the monthly growth rate (GROWTH).
Any help would be greatly appreciated!
Growing a Series
Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13315
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Growing a Series
Code: Select all
Series stock_forecast = @recode(stock=NA, stock_forecast(-1)*(1+growth),stock)
Follow us on Twitter @IHSEViews
Who is online
Users browsing this forum: No registered users and 18 guests