I'm hoping there is SPSS syntax that I can use to randomly select a number from among a couple of variables. For example: the data lists the ages of respondent's children in four variables - Age1 Age2 Age3 Age4
Resp 1 : 3 6 8
Resp 2 : 2 10
Resp 3 : 4
I want to create a variable that stores a randomly selected age for each respondent - something like:
Resp 1 : 6
Resp 2 : 2
Resp 3 : 5
Any help appreciated!
Aucun commentaire:
Enregistrer un commentaire