Search found 12 matches

by Lauri
Thu Dec 01, 2022 4:05 pm
Forum: Help
Topic: Compute Variable with if...than....
Replies: 18
Views: 5006

Re: Compute Variable with if...than....

Thank you very much for your answer!

But how does it works when there are two variables (so two §sources)?
Syntax in SPSS:

IF (subject of study = 1 and sex = 2) group = 1
If (subject of study = 3 and sex = 1) group = 2


Thank you!
by Lauri
Mon Nov 28, 2022 10:45 am
Forum: Help
Topic: Compute Variable with if...than....
Replies: 18
Views: 5006

Compute Variable with if...than....

Hi,
I am looking for a solution and would be very pleased to receive an answer....thank you!

I would like to calculate a variable and NOT set a filter:
if variable1>5 and variable2<5 use 1 and if variable1>5 and variable2>5 use 2

Greetings