Recoding a variable into deciles

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Recoding a variable into deciles

Jeff Stuewig
        Is there a quick way to recode a variable into deciles?  It seems
like a remember there is a function for this but I can't remember it.
Thanks.

                Jeff
Reply | Threaded
Open this post in threaded view
|

Re: Recoding a variable into deciles

<R. Abraham>
Try this:

If assigning 1 to lowest values:

RANK
 VARIABLES=VAR1 (A) /RANK /NTILES (10) /PRINT=YES
 /TIES=MEAN.


If assigning 1 to highest values:

RANK
 VARIABLES=VAR1 (A) /RANK /NTILES (10) /PRINT=YES
 /TIES=MEAN.


- renji




Jeff Stuewig <[hidden email]>
Sent by: "SPSSX(r) Discussion" <[hidden email]>
08/01/2006 05:38 PM
Please respond to
Jeff Stuewig <[hidden email]>


To
[hidden email]
cc

Subject
Recoding a variable into deciles






        Is there a quick way to recode a variable into deciles?  It seems
like a remember there is a function for this but I can't remember it.
Thanks.

                Jeff