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