|
|
Kilka porad nt. SPSS Syntax |
|
Eee... jeszcze nie przetłumaczyłem...
Sprawdź wersję angielską.
Góra
|
Komentarze |
#1
Rich
napisał(a) dnia
2012-02-05 19:25:19
|
Thanks, very much for this information. This is very useful. I have another question, that might be related to this. Is there a syntax for computing a new variable, depending on how people responded to a set of items in a multiple response question? Let me explain: There is a multiple response question, with 20 items. We consider all items in the question as all to pointing to healthy life style.
I want to create a new variable "healthy life style" (YES/NO)...so if a person responded "yes" to ANY of the items in the multiple response question, she/he would be categorized as having a healthy life style.
Usually I use the Transform>Compute Variable>If>Include if cases satisfy condition>...and enter the condition for each individual item (e.g. if v1=2 & v2=2 & v3=3...etc)
This is OK, but very time consuming when you have a large set of items to include...is there a way to do this with a syntax?
Thanks heaps for sharing your knowledge
|
#2
Trybik
napisał(a) dnia
2012-02-07 10:17:30
|
Glad to be of help.
For the question you ask, take a look here: SPSS Syntax - COUNT function
Hope that helps.
|
|
Góra |
|
Góra
|
|
|