to categorize

to categorize

Post by Guid » Tue, 10 Jun 2003 15:24:18



hi
sorry for my bad english...
If I have a variable with values:
15,15,15,16,16,16,16,16,17,17,17,18,18,19,19
how can i "categorize" it in a variable with values:
1 instead of 15 and 16
2 instead of 17
3 instead of 18 and 19  ?

Thanks

Guido

 
 
 

to categorize

Post by Arthur J. Kendal » Tue, 10 Jun 2003 21:02:35


recode oldvar (15,16=1)(17=2)(19,19=3(else=4) into newvar.

Hope this helps.

Art

Social Research Consultants
University Park, MD USA
(301) 864-5570


> hi
> sorry for my bad english...
> If I have a variable with values:
> 15,15,15,16,16,16,16,16,17,17,17,18,18,19,19
> how can i "categorize" it in a variable with values:
> 1 instead of 15 and 16
> 2 instead of 17
> 3 instead of 18 and 19  ?

> Thanks

> Guido


 
 
 

to categorize

Post by Guid » Tue, 10 Jun 2003 22:28:08


Quote:> Hope this helps.

yes, thanks.
Bye

g.m.

p.s. kendall...like kendall-test maker?

 
 
 

to categorize

Post by Bruce Weave » Tue, 10 Jun 2003 22:20:13



> hi
> sorry for my bad english...
> If I have a variable with values:
> 15,15,15,16,16,16,16,16,17,17,17,18,18,19,19
> how can i "categorize" it in a variable with values:
> 1 instead of 15 and 16
> 2 instead of 17
> 3 instead of 18 and 19  ?

> Thanks

> Guido

This should do it:

recode v1
 (15 16 = 1)
 (17 = 2)
 (18 19 = 3)
 (else = 4) into v2.
exe.

Cheers,
Bruce
--
Bruce Weaver

Homepage:   http://www.angelfire.com/wv/bwhomedir/

 
 
 

to categorize

Post by t.. » Tue, 10 Jun 2003 23:52:07



> hi
> sorry for my bad english...
> If I have a variable with values:
> 15,15,15,16,16,16,16,16,17,17,17,18,18,19,19
> how can i "categorize" it in a variable with values:
> 1 instead of 15 and 16
> 2 instead of 17
> 3 instead of 18 and 19  ?

> Thanks

> Guido

In case the variable is named V1, you can recode it to a new variable VA1 like this:

Recode V1 (15,16=1) (17=2) (18,19=3) into VA1.

Tal van Dijk

 
 
 

to categorize

Post by Arthur J. Kendal » Wed, 11 Jun 2003 09:35:41


You're welcome.

no known relation to Sir Maurice G. Kendall

Art Kendall


>>Hope this helps.

> yes, thanks.
> Bye

> g.m.

> p.s. kendall...like kendall-test maker?

 
 
 

1. Tool for sorting/categorizing address book available?

I would like to categorize my address book... is there a tool available?
For example, I would like to have all of my work contacts under a work
category, and all of my friends under a friends category.

Thanks in advance,  Mark Ogne

2. p3nfs and Linux

3. categorizing nicknames?

4. Achete CPC664

5. categorizing Info Tech.

6. Which Flatbed Scanner?

7. Q: Any standard for categorizing change requests?

8. Help with AutoRequest and IntuiText

9. Alphabetizing vs Categorizing

10. PDP/VAX Hardware help file: chopped up and categorized for archival

11. CDR(RW) software categorized by operating system?

12. Categorised Notes

13. Categorizing Notes on the Ipaq