Hi:
I would like to reduce the number of ordered categories in my dependent variable. How do I do that with Eviews13?
recoding/modifying a variable
Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13330
- Joined: Tue Sep 16, 2008 5:38 pm
Re: recoding/modifying a variable
My dependent variable has 11 categories (0-10). I would like to combine categories 0-3, 4-6, and 7-10
-
- Non-normality and collinearity are NOT problems!
- Posts: 3775
- Joined: Wed Sep 17, 2008 2:25 pm
Re: recoding/modifying a variable
vasco1966 wrote:My dependent variable has 11 categories (0-10). I would like to combine categories 0-3, 4-6, and 7-10
Code: Select all
series new = @recode(@inlist(old, "0 1 2 3"),1,NA)
new = @recode(@inlist(old, "4 5 6"),2, new)
new = @recode(@inlist(old, "7 8 9 10"),3, new)
Haven't tried, but I think it will work.
Re: recoding/modifying a variable
Thank you for your help. Will try it and will let you know
Who is online
Users browsing this forum: No registered users and 5 guests