Copy a subsample of a series

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

dagfinnrime
Posts: 54
Joined: Sat Oct 11, 2008 9:37 am
Location: Oslo
Contact:

Copy a subsample of a series

Postby dagfinnrime » Fri Nov 09, 2012 12:07 pm

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

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

Re: Copy a subsample of a series

Postby EViews Gareth » Fri Nov 09, 2012 12:28 pm

I don't think there's a way around it.

dagfinnrime
Posts: 54
Joined: Sat Oct 11, 2008 9:37 am
Location: Oslo
Contact:

Re: Copy a subsample of a series

Postby dagfinnrime » Fri Nov 09, 2012 12:37 pm

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


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests