Homework 1
Homework 2 Comments, Sample code
Homework 3 Some figures and some code
Homework 4 Some R code for HW4
Homework 5 A particularly thoughtful HW5 submission

Homework 6

Here is the sixth homework assignment. Please submit responses to me via email by Wednesday December 5th. pdf files are preferable.

Consider a subset if the Aids2 data included in the MASS library:

bloodAids <- subset(Aids2, T.categ=="blood")
bloodAids$days <- bloodAids$death - bloodAids$diag
bloodAids$dead <- as.integer(bloodAids$status=="D")
  1. Plot Kaplan-Meier curves (with confidence intervals) comparing survival for males and females
  2. Fit a Cox model using sex as a covariate
  3. Examine the residuals and comment on any concerns you might have