Chapter 11 Exercise 11

Sign in to test your solution.
# This example makes use of the data in Table 11.4.
df <- data.frame(observation=rep(c(26.5, 37.2, 57.3, 90.8, 20.2, 89.8)),
censoring=rep(c(1,1,1,0,0,0)),
covariate=rep(c(0.1, 11, -0.3, 2.8, 1.8, 0.4)), stringsAsFactors=T)


# Question 1
fit.km <-...
MC1 <-...


# Question 2
fit.cox <-...
MC2 <-...


# Question 3
logrank.test <-...
MC3 <-...
You can submit as many times as you like. Only your latest submission will be taken into account.
Sign in to test your solution.