- #1
EngWiPy
- 1,368
- 61
Hello,
I have two predictor variables: gender and class, and one response variable: survived. After converting the categorical variables into numeric variables using dummy variables, I found the correlation between gender_male and survived to be -0.54, and between class_1 and survived to be 0.29. Clearly, there is an negative relationship between being a male and survived, and a positive relationship between being a class_1 passenger and survived. However, I also want to study the combined effect of being male and in class_1 on the outcome. To this end, I created a new variable that logically finds the gender_male AND class_1, and found the correlation with survived. It was -0.012. Is what I did correct? If so, how to interpret the result?
Thanks
I have two predictor variables: gender and class, and one response variable: survived. After converting the categorical variables into numeric variables using dummy variables, I found the correlation between gender_male and survived to be -0.54, and between class_1 and survived to be 0.29. Clearly, there is an negative relationship between being a male and survived, and a positive relationship between being a class_1 passenger and survived. However, I also want to study the combined effect of being male and in class_1 on the outcome. To this end, I created a new variable that logically finds the gender_male AND class_1, and found the correlation with survived. It was -0.012. Is what I did correct? If so, how to interpret the result?
Thanks