Page 1 of 1

Another @nan question

Posted: Fri May 29, 2009 6:34 am
by Martin
I have created my historic weather series with daily information over a period of 42 years. Scatter randomly throughout the series are N/A values, after some thought I have decided to replace N/A with the previously known value within the series. Is there any way to do this with an EVIEWS function?

For example something like:

Series x=@nan(y,y(-1))

Sometimes N/A’s are group together for 2 to 5 observations. So I need more then the above example.

Re: Another @nan question

Posted: Fri May 29, 2009 6:50 am
by trubador
Try this:

Code: Select all

series x = @nan(y,x(-1))

Re: Another @nan question

Posted: Fri May 29, 2009 7:04 am
by Martin
Thank you Trubador. LOL, i was close.