Page 1 of 1

Option @smpl in command wfsave

Posted: Mon Feb 06, 2017 3:24 am
by mamo
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

Re: Option @smpl in command wfsave

Posted: Mon Feb 06, 2017 9:23 am
by EViews Gareth
@smpl doesn't work for saving to workfiles. Only foreign data.

Re: Option @smpl in command wfsave

Posted: Wed Feb 08, 2017 6:12 pm
by EViews Glenn
You can always contract the current page or subsample to a new page and then save that page to a new file.