| | Re: variables | | | | | Please clarify with an example. --
| | | Reply to Group Online View Thread Recommend Forward | |
Dear Jon Peck Ok, but I don't want to count but build a new variable with three categories. I have recoded the three dichotomous variables 0/1 into a different variable with value 1. Now I want to create a new variable with the three variables converted into categories of the new variable. I am trying to do it with SPSS but I don't think it can? Thanks
Original Message: Sent: 7/15/2021 12:37:00 PM From: Jon Peck Subject: RE: variables
So, I suppose that the input variables are dichotomous. Assuming that they are 0/1 you can just do compute religiosity = v1 + 10 * v2 + 100* v3. or something similar.
--
Original Message: Sent: 7/15/2021 11:44:00 AM From: DAMIAN HERRERA Subject: RE: variables
Dear Jon Peck I have three variables: V1 (Non-religious); V2 (something religious); V3 (very religious) I want to unite the three variables in a single variable (religiosity) with three categories: Category 1 (Non-religious); Category 2 (somewhat religious); category 3 (very religious) How could I do it with SPSS? Thanks Please clarify with an example. -- Jon K Peck jkpeck@gmail.com -posted to the "SPSS Statistics" group | | Re: variables | | | | | Please clarify with an example. --
| | | Reply to Group Online View Thread Recommend Forward | |
I don't see your logic here. Three variables with two categories each means eight possible categories. The code I posted puts these three variables together. It doesn't count anything.
Maybe it would help if you can explain what you want to do with this composite variable.
--
Original Message: Sent: 7/15/2021 1:01:00 PM From: DAMIAN HERRERA Subject: RE: variables
Dear Jon Peck Ok, but I don't want to count but build a new variable with three categories. I have recoded the three dichotomous variables 0/1 into a different variable with value 1. Now I want to create a new variable with the three variables converted into categories of the new variable. I am trying to do it with SPSS but I don't think it can? Thanks
Original Message: Sent: 7/15/2021 12:37:00 PM From: Jon Peck Subject: RE: variables
So, I suppose that the input variables are dichotomous. Assuming that they are 0/1 you can just do compute religiosity = v1 + 10 * v2 + 100* v3. or something similar.
--
Dear Excuse The fault is mine for not knowing how to explain myself well. A) I have built the variables (0/1) with the count procedure Popular classes ((0/1) Middle classes (0/1) Upper classes (0/1) B) I HAVE RECODED IN THE SAME VARIABLES Popular classes (1) Middle classes (1) Upper classes (1) C) I WANT TO CATEGORIZE THE VARIABLES UNDER THE SAME VARIABLE Variable (socioeconomic position): Category 1 Popular Classes (1) Category 2 Middle classes (1) Category 3 Upper classes (1)
Original Message: Sent: 7/15/2021 1:26:00 PM From: Jon Peck Subject: RE: variables
I don't see your logic here. Three variables with two categories each means eight possible categories. The code I posted puts these three variables together. It doesn't count anything.
Maybe it would help if you can explain what you want to do with this composite variable.
--
Original Message: Sent: 7/15/2021 1:01:00 PM From: DAMIAN HERRERA Subject: RE: variables
Dear Jon Peck Ok, but I don't want to count but build a new variable with three categories. I have recoded the three dichotomous variables 0/1 into a different variable with value 1. Now I want to create a new variable with the three variables converted into categories of the new variable. I am trying to do it with SPSS but I don't think it can? Thanks
Original Message: Sent: 7/15/2021 12:37:00 PM From: Jon Peck Subject: RE: variables
So, I suppose that the input variables are dichotomous. Assuming that they are 0/1 you can just do compute religiosity = v1 + 10 * v2 + 100* v3. or something similar.
--
hello,
did you mean this?
do repeat a = v1 v2 v3/ kat = 1 2 3. if (a = 1) religiosity = kat. end repeat.
or
if (v1 = 1) religiosity = 1. if (v2 = 1) religiosity = 2. if (v3 = 1) religiosity = 3.
regards,
xq ------------------------------ xiaoqin Oezener-Wan ------------------------------
Original Message: Sent: Thu July 15, 2021 11:43 AM From: DAMIAN HERRERA Subject: variables
Dear Jon Peck I have three variables: V1 (Non-religious); V2 (something religious); V3 (very religious) I want to unite the three variables in a single variable (religiosity) with three categories: Category 1 (Non-religious); Category 2 (somewhat religious); category 3 (very religious) How could I do it with SPSS? Thanks Please clarify with an example. -- Jon K Peck jkpeck@gmail.com -posted to the "SPSS Statistics" group | | Re: variables | | | | | Please clarify with an example. --
| | | Reply to Group Online View Thread Recommend Forward | | Original Message: Sent: 7/14/2021 2:52:00 PM From: DAMIAN HERRERA Subject: variables Dear<o:p></o:p> I need to convert three independent variables (V1; V2; V3) into categories of a new variable (V (n): Cat1 (v1) .; Cat2 (v2); Cat3 (v3)). I have studied the procedures of Counting and recoding variables but they do not work. Please could you tell me if it is possible to create the new three category variable in SPSS.<o:p></o:p> Thank you<o:p></o:p>
------------------------------ DAMIAN HERRERA ------------------------------ | |
| | 
Dear xiaoqin Thanks but through what SPSS procedure could it be carried out (Transform, Build new variables), or would it be necessary to write it?
Original Message: Sent: 7/16/2021 9:38:00 AM From: xiaoqin Oezener-Wan Subject: RE: variables
hello,
did you mean this?
do repeat a = v1 v2 v3/ kat = 1 2 3. if (a = 1) religiosity = kat. end repeat.
or
if (v1 = 1) religiosity = 1. if (v2 = 1) religiosity = 2. if (v3 = 1) religiosity = 3.
regards,
xq
------------------------------ xiaoqin Oezener-Wan ------------------------------
Original Message: Sent: Thu July 15, 2021 11:43 AM From: DAMIAN HERRERA Subject: variables
Dear Jon Peck I have three variables: V1 (Non-religious); V2 (something religious); V3 (very religious) I want to unite the three variables in a single variable (religiosity) with three categories: Category 1 (Non-religious); Category 2 (somewhat religious); category 3 (very religious) How could I do it with SPSS? Thanks Please clarify with an example. -- Jon K Peck jkpeck@gmail.com -posted to the "SPSS Statistics" group | | Re: variables | | | | | Please clarify with an example. --
| | | Reply to Group Online View Thread Recommend Forward | |
Hello Damian, it is necessary to write the lines in SPSS syntax editor, and let them run, the new variable will be created best regards, xiaoqin ------------------------------ xiaoqin Oezener-Wan ------------------------------
Original Message: Sent: Fri July 16, 2021 11:44 AM From: DAMIAN HERRERA Subject: variables
Dear xiaoqin Thanks but through what SPSS procedure could it be carried out (Transform, Build new variables), or would it be necessary to write it?
Original Message: Sent: 7/16/2021 9:38:00 AM From: xiaoqin Oezener-Wan Subject: RE: variables
hello,
did you mean this?
do repeat a = v1 v2 v3/ kat = 1 2 3. if (a = 1) religiosity = kat. end repeat.
or
if (v1 = 1) religiosity = 1. if (v2 = 1) religiosity = 2. if (v3 = 1) religiosity = 3.
regards,
xq
------------------------------ xiaoqin Oezener-Wan ------------------------------
Original Message: Sent: Thu July 15, 2021 11:43 AM From: DAMIAN HERRERA Subject: variables
Dear Jon Peck I have three variables: V1 (Non-religious); V2 (something religious); V3 (very religious) I want to unite the three variables in a single variable (religiosity) with three categories: Category 1 (Non-religious); Category 2 (somewhat religious); category 3 (very religious) How could I do it with SPSS? Thanks Please clarify with an example. -- Jon K Peck jkpeck@gmail.com -posted to the "SPSS Statistics" group | | Re: variables | | | | | Please clarify with an example. --
| | | Reply to Group Online View Thread Recommend Forward | | Original Message: Sent: 7/14/2021 2:52:00 PM From: DAMIAN HERRERA Subject: variables Dear<o:p></o:p> I need to convert three independent variables (V1; V2; V3) into categories of a new variable (V (n): Cat1 (v1) .; Cat2 (v2); Cat3 (v3)). I have studied the procedures of Counting and recoding variables but they do not work. Please could you tell me if it is possible to create the new three category variable in SPSS.<o:p></o:p> Thank you<o:p></o:p>
------------------------------ DAMIAN HERRERA ------------------------------ | |
| | 
Original Message: Sent: 7/19/2021 2:16:00 AM From: xiaoqin Oezener-Wan Subject: RE: variables
Hello Damian,
it is necessary to write the lines in SPSS syntax editor, and let them run, the new variable will be created
best regards,
xiaoqin
------------------------------ xiaoqin Oezener-Wan ------------------------------
Original Message: Sent: Fri July 16, 2021 11:44 AM From: DAMIAN HERRERA Subject: variables
Dear xiaoqin Thanks but through what SPSS procedure could it be carried out (Transform, Build new variables), or would it be necessary to write it?
Original Message: Sent: 7/16/2021 9:38:00 AM From: xiaoqin Oezener-Wan Subject: RE: variables
hello,
did you mean this?
do repeat a = v1 v2 v3/ kat = 1 2 3. if (a = 1) religiosity = kat. end repeat.
or
if (v1 = 1) religiosity = 1. if (v2 = 1) religiosity = 2. if (v3 = 1) religiosity = 3.
regards,
xq
------------------------------ xiaoqin Oezener-Wan ------------------------------
Original Message: Sent: Thu July 15, 2021 11:43 AM From: DAMIAN HERRERA Subject: variables
Dear Jon Peck I have three variables: V1 (Non-religious); V2 (something religious); V3 (very religious) I want to unite the three variables in a single variable (religiosity) with three categories: Category 1 (Non-religious); Category 2 (somewhat religious); category 3 (very religious) How could I do it with SPSS? Thanks Please clarify with an example. -- Jon K Peck jkpeck@gmail.com -posted to the "SPSS Statistics" group | | | | | | | | | | | |