Hi,
I have a variable which has 5 values. I need to mix 1,2,3 and 6,7 together. to make a 2 variable, but I dont know how. Please help!!!
The item is : What did you do with your photos
1. I shared them
2.I plan to share them
3. I streamed when I was in the concer
6. I didnt share it
7. nothing
so now I need to make a new variable with 1,2,3
and 6,7
to do Anova
On Tuesday, August 25, 2020 at 6:22:50 AM UTC-4, Alba Johnsen wrote:
Hi,
I have a variable which has 5 values. I need to mix 1,2,3 and 6,7 together. to make a 2 variable, but I dont know how. Please help!!!
The item is : What did you do with your photos
1. I shared them
2.I plan to share them
3. I streamed when I was in the concer
6. I didnt share it
7. nothing
so now I need to make a new variable with 1,2,3
and 6,7
to do Anova
Please generate a small data listing of several cases that shows what the data look like now, and what you want it to look like afterwards.
On Tue, 25 Aug 2020 05:37:17 -0700 (PDT), Bruce Weaver
<bweaver@lakeheadu.ca> wrote:
On Tuesday, August 25, 2020 at 6:22:50 AM UTC-4, Alba Johnsen wrote:
Hi,
I have a variable which has 5 values. I need to mix 1,2,3 and 6,7 together. to make a 2 variable, but I dont know how. Please help!!!
The item is : What did you do with your photos
1. I shared them
2.I plan to share them
3. I streamed when I was in the concer
6. I didnt share it
7. nothing
so now I need to make a new variable with 1,2,3
and 6,7
to do Anova
Please generate a small data listing of several cases that shows what the data look like now, and what you want it to look like afterwards.
My guess is that the intention is to create a dichotomy, in
a new variable. Thus.
RECODE Photos(1,2,3=1)(6,7=2)(else=9) into Share .
Value labels Share(1) share (2) not share.
--
Rich Ulrich
On Tuesday, August 25, 2020 at 10:28:57 AM UTC-4, Rich Ulrich wrote:
On Tue, 25 Aug 2020 05:37:17 -0700 (PDT), Bruce Weaver <bweaver@lakeheadu.ca> wrote:
On Tuesday, August 25, 2020 at 6:22:50 AM UTC-4, Alba Johnsen wrote:
Hi,
I have a variable which has 5 values. I need to mix 1,2,3 and 6,7 together. to make a 2 variable, but I dont know how. Please help!!!
The item is : What did you do with your photos
1. I shared them
2.I plan to share them
3. I streamed when I was in the concer
6. I didnt share it
7. nothing
so now I need to make a new variable with 1,2,3
and 6,7
to do Anova
Please generate a small data listing of several cases that shows what the data look like now, and what you want it to look like afterwards.
My guess is that the intention is to create a dichotomy, in
a new variable. Thus.
RECODE Photos(1,2,3=1)(6,7=2)(else=9) into Share .
Value labels Share(1) share (2) not share.
--
Rich Ulrich
Ah, okay. That makes sense. But what happened to 4 and 5?
If it is a dichotomous Yes/No variable named Share, my preference is to use 1=Yes, 0=No coding. So my version of Rich's code would be:
RECODE Photos (1 2 4 = 1) (6 7 = 0) (ELSE = 9) INTO Share.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 293 |
Nodes: | 16 (2 / 14) |
Uptime: | 240:18:38 |
Calls: | 6,624 |
Files: | 12,173 |
Messages: | 5,320,076 |