Replace NA with missing

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

sfawver@archmi.com
Posts: 12
Joined: Tue Oct 13, 2015 9:45 am

Replace NA with missing

Postby sfawver@archmi.com » Tue Oct 13, 2015 9:54 am

I'm using EViews9, latest build.

Is there a way to replace NA values with missing? So replace NA with a period.

The error is get is . is not defined in "blah".

series fcst_hpi=@recode(fcst_hpi=na,.,fcst_hpi

startz
Non-normality and collinearity are NOT problems!
Posts: 3797
Joined: Wed Sep 17, 2008 2:25 pm

Re: Replace NA with missing

Postby startz » Tue Oct 13, 2015 11:33 am

EViews treats NA as missing. What is it that you are trying to accomplish?

sfawver@archmi.com
Posts: 12
Joined: Tue Oct 13, 2015 9:45 am

Re: Replace NA with missing

Postby sfawver@archmi.com » Wed Oct 14, 2015 6:58 am

I would like to replace the NAs in the series with a period. So when I export the series to .csv there won't be any text in the field. It will le me replace it with zero. Just wondering if I can replace it with a period. I'm guessing probably not.

startz
Non-normality and collinearity are NOT problems!
Posts: 3797
Joined: Wed Sep 17, 2008 2:25 pm

Re: Replace NA with missing

Postby startz » Wed Oct 14, 2015 7:03 am

You can't replace with a period, because a series only contains numeric values. But you might be able to copy the series into an alpha, and replace missings there with a period.

EViews Glenn
EViews Developer
Posts: 2682
Joined: Wed Oct 15, 2008 9:17 am

Re: Replace NA with missing

Postby EViews Glenn » Wed Oct 14, 2015 11:29 am

EViews requires the numeric missing values in the series. You can, however, do a replacement of the text representation on the save

Code: Select all

wfsave(type=text) test.txt na="."


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests