Dear Statalist Forum,
I have a dataset of a case/control study (coded: 1 for cases), with effect modifiers sex (coded: 1 for male) and age_gp (coded: 15, 26, 40, 65) and a confounder (coded: 1,2,3,4,5); see below a random sample of the dataset with dataex command.
I ran the following logistic regression:
I was wondering if the way and my interpretation how I got the stratified odds ratios is correct:
Thank you for your expertise in advance.
Kind regards
Martin
I have a dataset of a case/control study (coded: 1 for cases), with effect modifiers sex (coded: 1 for male) and age_gp (coded: 15, 26, 40, 65) and a confounder (coded: 1,2,3,4,5); see below a random sample of the dataset with dataex command.
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input byte(case bin_outcome) float(sex_m1 age_gp) byte confounder 1 1 0 26 3 0 0 0 65 2 0 0 1 40 3 0 0 0 65 1 0 0 1 15 3 0 1 0 40 2 0 0 1 65 1 0 0 0 15 3 0 0 0 65 2 0 0 1 26 3 end
Code:
logistic bin_outcome case##age_gp case##sex_m1 i.confounder, base
Code:
// Odds ratio for cases vs. controls in age-group 15-25 for females adjusted for triage for bin_outcome lincom 1.case+ 1.case#15.age_gp + 1.case#0.sex // Odds ratio for cases vs. controls in in age-group 65-120 for males adjusted for triage lincom 1.case+ 1.case#65.age_gp + 1.case#1.sex
Kind regards
Martin
Comment