Due Date: Tuesday, Oct. 29, 9:30

Use R to answer the questions below. Submit your answers in an R Markdown document along with a PDF export of the R Markdown.

Question 1

  1. Create the full data set (i.e., the unit of analysis is the patient) used in Charig et al (📜), and compare the success of open versus percutaneous surgery using logistic regression and contingency tables. Which surgical procedure has a higher success rate? Briefly explain.
  2. Compare the success rates of open versus percutaneous in the \(< 2 \text { cm}\), and \(\geq 2 \text{ cm}\) separately using logistic regression and contingency tables. Which surgical procedure has a higher success rate? Briefly explain.
  3. Use (a) to (b) to develop a conclusion about which surgical procedure has a higher success rate? Briefly explain.

(📜) Charig, Clive R., et al. “Comparison of treatment of renal calculi by open surgery, percutaneous nephrolithotomy, and extracorporeal shockwave lithotripsy.” Br Med J (Clin Res Ed) 292.6524 (1986): 879-882.

Question 2

Statistical Society of Canada Case Study 2 (2019). The data and background are available here.

  1. Develop answers to 1,2, and 4.

  2. Evaluate the predictive accuarcy of the model used to calculate the adjusted measure of association between osteoarthitis and heart disease. Do you recommend using this model to prdedict heart disease for Canadians?