I would like to recode multiple variables. For example: each variable can range from 0 to 100 and there 7 variables. Question how can recode to a new variable (1) consisting of up to 6 out of 7 variables scoring above 50, (2) those who have 6 or 7 below 50 and those with mixed.
I need to recode a string variable into 4 new variables - ie "favourite chocolate bars" into "mars", "snickers", "bounty" and "picnic" - with each of these new variables either filled or left blank if the original variable included them. However the original variable can contain all or none of these. How do I do this?
+Liana Varrone If I understand your situation, I would suggest that you create 4 new columns labelled mars, snickers, bounty, etc. These columns will either contain a response or be blank.
Hello, if i have a variable female listed as string, how do i change this to numeric if I'm trying to compute an analysis around male?
Click on the Variable view tab at the bottom of the screen, then find the column labeled Type. Here is where you can change your variable to numeric.
I would like to recode multiple variables. For example: each variable can range from 0 to 100 and there 7 variables. Question how can recode to a new variable (1) consisting of up to 6 out of 7 variables scoring above 50, (2) those who have 6 or 7 below 50 and those with mixed.
+mrmiguelf44 I'm not sure I understand your intention but variables can be aggregated first and then recoded.
I need to recode a string variable into 4 new variables - ie "favourite chocolate bars" into "mars", "snickers", "bounty" and "picnic" - with each of these new variables either filled or left blank if the original variable included them. However the original variable can contain all or none of these. How do I do this?
+Liana Varrone If I understand your situation, I would suggest that you create 4 new columns labelled mars, snickers, bounty, etc. These columns will either contain a response or be blank.