Hi everyone,
I am trying to determine the OR of smoking (binary) among different groups accounting for a 3 way interaction between race, sex and education.
race=0 if white and =1 if black
sex=0 if female and 1 if man
education =0 none 1= High school 2= college
My model is : logistic smokes race sex education i.sex##i.race##i.education
I am interest in describing how education level protects differently men and women depending on their race. Getting confused and unable to test my sintaxis with my online reads, I would really appreciate if you could check my lincom models.
Thank you!!!!
Gender differences within same race
1. white men vs white women with no education
lincom 1.sex, or
2.black men vs black women with no education
lincom 1.sex + 1.sex#1.race , or
3. black men vs black women with High school
lincom 1.sex + 1.sex#1.race +1.race#1.education + 1.sex#1.race#1.education, or
Race differences within same gender
4. white women vs black women with no education
lincom 1.race , or
5. white women vs black women with high school
lincom 1.race +1.race#1.education , or
6. black men vs with men without education
lincom 1.sex + 1.race + 1.sex#1.race , or
7. black men vs with men with High school
lincom 1.sex + 1.race + 1.sex#1.race 1.sex#1.race#1.education, or
thanks!
I am trying to determine the OR of smoking (binary) among different groups accounting for a 3 way interaction between race, sex and education.
race=0 if white and =1 if black
sex=0 if female and 1 if man
education =0 none 1= High school 2= college
My model is : logistic smokes race sex education i.sex##i.race##i.education
I am interest in describing how education level protects differently men and women depending on their race. Getting confused and unable to test my sintaxis with my online reads, I would really appreciate if you could check my lincom models.
Thank you!!!!
Gender differences within same race
1. white men vs white women with no education
lincom 1.sex, or
2.black men vs black women with no education
lincom 1.sex + 1.sex#1.race , or
3. black men vs black women with High school
lincom 1.sex + 1.sex#1.race +1.race#1.education + 1.sex#1.race#1.education, or
Race differences within same gender
4. white women vs black women with no education
lincom 1.race , or
5. white women vs black women with high school
lincom 1.race +1.race#1.education , or
6. black men vs with men without education
lincom 1.sex + 1.race + 1.sex#1.race , or
7. black men vs with men with High school
lincom 1.sex + 1.race + 1.sex#1.race 1.sex#1.race#1.education, or
thanks!
Comment