Hi there,
I'm trying to calculate both crudeRR (relative risk) with 95%CI and adjustedRR for my data and all I can find is people calculating RR with a 2x2 table.
My response variable is binary (poor sleep quality vs. good sleep quality), however, many of my explanatory variables are not (e.g., education [University, high school or trade school, grade school, other], work schedule [fixed, flexible, shifts] ..)
What is the best way to do this? Can I use a generalized linear model similar to glm used to calculate OR?
Thanks!