Pagecontract NAs

For questions regarding programming in the EViews programming language.

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

paues
Posts: 218
Joined: Fri Apr 15, 2011 7:16 am
Location: Stockholm, Sweden

Pagecontract NAs

Postby paues » Thu Apr 04, 2013 8:06 am

In EViews 8, is there any easy way to contract a page so that the sample only includes periods for which there is at least one observation?

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

Re: Pagecontract NAs

Postby EViews Gareth » Thu Apr 04, 2013 8:07 am

One observation in a particular series, or all series?

paues
Posts: 218
Joined: Fri Apr 15, 2011 7:16 am
Location: Stockholm, Sweden

Re: Pagecontract NAs

Postby paues » Thu Apr 04, 2013 8:08 am

Any series. That is, if the page range originally is 1900 1910 and there are two series, one dating from 1901 to 1905 and the other from 1904 to 1909, then I would like for the page range to be 1901 1909 after the contraction.
Last edited by paues on Thu Apr 04, 2013 8:11 am, edited 1 time in total.

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

Re: Pagecontract NAs

Postby EViews Gareth » Thu Apr 04, 2013 8:29 am

Put the series in a group, then use @robs(group)>0 as the sample to keep.

paues
Posts: 218
Joined: Fri Apr 15, 2011 7:16 am
Location: Stockholm, Sweden

Re: Pagecontract NAs

Postby paues » Thu Apr 04, 2013 9:11 am

Thanks! More and more I get the feeling that groups are the answer to all my questions :-)


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest