example 1:
CTABLES /TABLE SEX > HAPMAR [COLPCT] BY CHILDCAT.
example 2:
CTABLES /TABLE SEX > HAPMAR BY CHILDCAT.
OR
CTABLES /TABLE (HAPPY + HAPMAR) > SEX.
choose one of the above depending on how you want the variable SEX
to be displayed the first example brings it out as the outer most variable,
while the 2nd one puts it as the inner most.
The following will give sorted result (Descending) based on
the variable CAR1 by age group
of respondent:
CTABLES
/TABLE CAR1 BY AGECAT
/CATEGORIES VARIABLES=AGECAT TOTAL=YES
/CATEGORIES VARIABLES=CAR1 ORDER=D KEY=COUNT.
(Source SPSS help file)
*In addition to the above, I want to add column percents
and Ns to the tables!!
I will try to collect all my SPSS/STATA and other stats notes here!!
Tuesday, 7 December 2010
Nesting in CTABLE and sorted results
Subscribe to:
Post Comments (Atom)
2 comments:
adidas superstar
yeezy supply
coach outlet
supreme hoodie
vans outlet
stephen curry shoes
nike lebron 16
curry 7
golden goose outlet
timberland boots
go l6f41i0f21 replica bags buy online replica bags aaa see this p5x83v3t12 Louis Vuitton fake Bags replica bags nyc i0o34p1b93 redirected here o2j47q7a46 replica louis vuitton handbags replica bags joy h0a88a7g17
Post a Comment