Q1. We are exploring the bivariate association between treatment (1: received treatment, 0: otherwise) and diabetes (1: yes, 0: otherwise) with a complex survey dataset. The name of the analytic dataset is `dat.analytic`, and the design `survey.design` is created using the svydesign function. Which R code could be used to explore the association? Note: survey features should be utilized to answer this and next questions.
Q2. Which codes could be used to explore the relationship between treatment and diabetes in Q1 using regression analysis?
question("Q3. From the literature, you know that sex and race needs to be adjusted in the model, but you are not sure about income and diet. How could you run an AIC based backward selection process to figure out whether you
How could you test for adding an interaction term between sex and race in the final model in Q3 (fit3)?
What is the appropriate way to fit a regression model on sub-population, e.g., only on females?