Growing a Series

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

kcaron
Posts: 101
Joined: Wed Mar 04, 2015 11:46 am

Growing a Series

Postby kcaron » Tue Apr 19, 2016 2:11 pm

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!

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13603
Joined: Tue Sep 16, 2008 5:38 pm

Re: Growing a Series

Postby EViews Gareth » Tue Apr 19, 2016 11:55 pm

Code: Select all

Series stock_forecast = @recode(stock=NA, stock_forecast(-1)*(1+growth),stock)


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests