Writing NAs

For making suggestions and/or requests for new features you'd like added to EViews.

Moderators: EViews Gareth, EViews Moderator

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

Writing NAs

Postby startz » Wed Mar 06, 2013 1:02 pm

It would be useful if there were the ability to control how NAs are written to text files, for example "NAN" rather than "NA." While I guess one could do a recode into an alpha, something more direct would be nice.

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

Re: Writing NAs

Postby EViews Glenn » Wed Mar 06, 2013 4:10 pm

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

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

Re: Writing NAs

Postby startz » Wed Mar 06, 2013 4:13 pm

Cool.

Uh, is there a spot in the docs that I can read about this?

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

Re: Writing NAs

Postby EViews Glenn » Wed Mar 06, 2013 5:56 pm

Yes, that's how I found the option. Both the wfsave and pagesave entries note that all of the options for the specification in wfopen are applicable.

"See wfopen for details on the syntax of source_descriptions and table_descriptions."

Under the Text and Binary Files section of the wfopen command, I found the entry

"na="arg1"", text used to represent observations that are missing from the file. The text should be enclosed in double quotes.

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

Re: Writing NAs

Postby startz » Wed Mar 06, 2013 7:19 pm

Thankee.


Return to “Suggestions and Requests”

Who is online

Users browsing this forum: No registered users and 2 guests