starting value

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

trainee
Posts: 38
Joined: Fri Jun 13, 2014 12:59 pm

starting value

Postby trainee » Thu Sep 04, 2014 6:34 am

Hope everyone is doing well.

I am trying to roll forward a bunch of data series using a certain growth rate. But because these data series update at different points in time I am having issues setting a starting value. Is there a way I can simply make E-views go to the previous period if last period was N/A (has not yet come in) for a particular series?

Thanks a bunch.

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

Re: starting value

Postby EViews Gareth » Thu Sep 04, 2014 8:15 am

Code: Select all

smpl if x = na x = x(-1) smpl @all


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests