Option @smpl in command wfsave

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator

mamo
Posts: 192
Joined: Wed Nov 07, 2012 9:11 am

Option @smpl in command wfsave

Postby mamo » Mon Feb 06, 2017 3:24 am

Dear EVIEWs team,

I use Eviews 9.5, Mach 17 2016 build

I am wondering how I can save a subsample of data.
The example code below should save only those observation for which x>0 in a new workfile

Code: Select all

wfcreate u 100
series x=nrnd
wfsave test.wf1 @smpl @all if x>0
show x


Unexpectedly, the newly created workfile contains all observations, including those with negative x-values.
What is wrong with the @smpl option in the wfsave command in the example above?

Best, mamo

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

Re: Option @smpl in command wfsave

Postby EViews Gareth » Mon Feb 06, 2017 9:23 am

@smpl doesn't work for saving to workfiles. Only foreign data.
Follow us on Twitter @IHSEViews

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

Re: Option @smpl in command wfsave

Postby EViews Glenn » Wed Feb 08, 2017 6:12 pm

You can always contract the current page or subsample to a new page and then save that page to a new file.


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 15 guests