Hello,
Can anyone help me with this?
I want to separate a series into two classes: large and small. The raw data X run from -3 to 1. If a number is between -0.14 to 0.14, it is considered small, otherwise large.
I wrote series large=recode( X>0.14 or X<-0.14,X,0)
series small=recode(-0.14<X<0.14,X,0)
However, the resulting series aren't correct. Where were my problems?
Many thanks!!
recode data question
Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13315
- Joined: Tue Sep 16, 2008 5:38 pm
Re: recode data question
Your large series should be correct, you just need to use the same idea for the small series:
series small = @recode(X<0.14 and x>-0.14,x,0)
series small = @recode(X<0.14 and x>-0.14,x,0)
Follow us on Twitter @IHSEViews
Re: recode data question
Tks a lot, it works now!!
Who is online
Users browsing this forum: No registered users and 15 guests