Page 1 of 1

Copy a subsample of a series

Posted: Fri Nov 09, 2012 12:07 pm
by dagfinnrime
Hi,
I want to copy a series without the most extreme values between two sheets (from sheet1 to sheet2) with same length and frequency. Example:

Code: Select all

smpl @all if @abs(eur)<@quantile(@abs(eur),0.99) series tmp = eur copy tmp sheet2\eur
but I would rather do something without creating the "tmp"-variable, like

Code: Select all

copy(smpl="@all if @abs(eur)<@quantile(@abs(eur),0.99)") eur sheet2\
Unfortunately this doesn't work. I get error-message that "eur" already exist.

Thanks,

Dagfinn

Re: Copy a subsample of a series

Posted: Fri Nov 09, 2012 12:28 pm
by EViews Gareth
I don't think there's a way around it.

Re: Copy a subsample of a series

Posted: Fri Nov 09, 2012 12:37 pm
by dagfinnrime
OK. Please consider it as a request.

Not even the following works:

Code: Select all

copy(smpl="@all if @abs(of_eur)<@quantile(@abs(of_eur),0.99)",c=ln) of_eur testsheet\* @src @date @dest @date
Dagfinn