lundi 17 juillet 2017

SPSS - Split file according to 3 string questions

First of all: I'm a complete newbie in SPSS and highly appreciate your discussions here!

I have data from a 2x2x3 experiment. For this dataset I have 3 manipulation questions. I created three embedded data fields in the survey for these questions with the labels "Correct" and "Wrong".

Now, I would like to split my file in four versions to see if answering the 3 manipulation questions has an influence on my outcome.

To capture the correct/ wrong manipulation questions (ResponseReason, Attribution, Measure), I tried to create a filter variable - without success. Perhaps someone could share some expertise about this issue and how to proceed.

Thanks so much! Anna

My code for the filter varibale:

Do if (ResponseAttribution = "Correct" and ResponseMeasure = "Correct" and ResponseReason = "Correct"). FilterVar = 3. ELSE if ((ResponseAttribution = "Correct" and ResponseMeasure = "Correct") or (ResponseAttribution = "Correct" and ResponseReason = "Correct") or (ResponseMeasure = "Correct" and ResponseReason = "Correct")). FilterVar = 2. Else if ResponseAttribution = "Correct" or ResponseMeasure = "Correct" or ResponseReason = "Correct". FilterVar = 1. else. FilterVar = 0. end if. EXECUTE.

Aucun commentaire:

Enregistrer un commentaire