Subsample on panel data and scatter plot

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

jgarnier
Posts: 5
Joined: Thu Feb 17, 2011 2:07 am

Subsample on panel data and scatter plot

Postby jgarnier » Mon Mar 09, 2015 9:11 am

Hi,
I use a panel dataset with 3000 cross-sections on 12 periods (2001-2012).

In order to suppress some undesirable observations, I restrict the sample using :
smpl @all if rrf>0 and dotations>0

After that, when looking at the spreadsheet, some cross-sections still have the 12 periods, whereas some have not, which is normal.

The problem is that when I plot two variables using scatpair :
group pcpl1 dotations dep_invest
pcpl1.scatpair

the scatter is automatically selected over a sub-period (2004-2012 here). When I extend the plot to include 2001 to 2003, it seems that i get a scatter with the full sample instead (i.e. with 3000x12 obs.).

How can I get around this problem?

Thanks in advance

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

Re: Subsample on panel data and scatter plot

Postby EViews Gareth » Mon Mar 09, 2015 9:27 am

When you say that you extend the plot, what do you mean?

jgarnier
Posts: 5
Joined: Thu Feb 17, 2011 2:07 am

Re: Subsample on panel data and scatter plot

Postby jgarnier » Mon Mar 09, 2015 11:01 am

Sorry I meant : extend the number of years appearing in the plot (by dragging the bar at the bottom)

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

Re: Subsample on panel data and scatter plot

Postby EViews Gareth » Mon Mar 09, 2015 11:09 am

Yeah, using the slider at the bottom will remove any if conditions you have.


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests