Date: Fri, 21 Apr 2006 16:23:25 -0500
Reply-To: "Peck, Jon" <firstname.lastname@example.org>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: "Peck, Jon" <email@example.com>
Subject: Re: Combining categories with Recode
Content-Type: text/plain; charset="UTF-8"
From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU] On Behalf Of Bob Schacht
Sent: Friday, April 21, 2006 2:34 PM
Subject: Re: [SPSSX-L] Combining categories with Recode
[>>>Peck, Jon] Value Labels is not a procedure. It does not pass the data. This is spelled out in the dreaded Appendix A of the Command Syntax Reference.
Thanks. This is, in essence, what I wound up doing.
BTW, is the "value labels" command considered as a procedure? In other
words, can I slip in a value labels command between the Recode and the
Crosstab so that the Crosstab procedure will be processed using both Recode
and Value labels modifications?
[>>>Peck, Jon] The power for this already exists in Ctables. You would use the Hiding Subtotal feature, which allows you to subtotal specified categories (and label it as you wish) and hide the subtotaled categories. Ctables also gives you full control over the order and inclusion of categories on an individual basis.
While I'm at it, can I dream a little and suggest that SPSS add an optional
category list following the name of a variable in the CROSSTAB procedure?
So, for example, instead of having to recode as above, one could simply
CROSSTABS ED_LEVL(2+3, 4+5, 6+7+8) BY ...
/STATISTICS = CHISQ
This would pool the categories as stipulated, and use labels consisting of
the original labels strung together (e.g., the label for category 3 would
simply be added on to the end of the label for category 2).
Robert M. Schacht, Ph.D. <firstname.lastname@example.org>
Pacific Basin Rehabilitation Research & Training Center
1268 Young Street, Suite #204
Research Center, University of Hawaii
Honolulu, HI 96814