Gregor:
compute newvar1=v1*10.
compute newvar2=v2*100.
compute newvar3=v3*1000.
compute newvar4=v4*10000.
compute newvar5=v5*100000.
compute newvar6=v6*1000000.
comment the command below assumes that all participants have responses
of 0 or 1 for each variable.
compute totalvars=sum.6(newvar1 to newvar6).
Freq var=totalvars.
The above untested should produce for you all of the different
combinations.
Martin F. Sherman, Ph.D.
Professor of Psychology
Director of Masters Education: Thesis Track
Loyola College
Psychology Department
222 B Beatty Hall
4501 North Charles Street
Baltimore, MD 21210
410 617-2417 (office)
410 617-5341 (fax)
[hidden email]
>>> Gregor Selčan <
[hidden email]> 2/16/2008 5:51 AM >>>
Hi.
I have 500 respondents and six variables with two values: 0-absent, 1
-
present. I'd like to find out, how many of them answer to each of those
6
variable combinations (of course: only >present< value is counted).
For
example:
V1
V1+V2
V1+V3
V1+V4
...
V1+V2+V3
V1+V2+V4
...
V1+V2+V3+V4+V5+V6
If my math is correct, there will be 63 possible combinations. How
could I
get corresponded frequencies (number of respondents) of each
combination
using SPSS 16?
Thanks in advance,
Gregor Selcan
=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except
the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD