The analysis continues...
5. Complete a logistic regression to examine the association of each test with diagnosis, controlled for confounders. Consider how to decide what confounders to include. Consider the pros and cons of adding in adidtional predictors. Consider how to present our data to help clinicians make decisions in the real world
Remember to closely inspect the model output summary, which should look something like this:
> > m_testB <- glm(diagnosis ~ + testB ++ depression + + age, + data = df,+ family = 'binomial')> summary(m_testB)Here is some R code to help you with task 5