Warning! It seems that you are using Dodona within another webpage, so not everything may work properly. Let your teacher know so that he can solve the problem by adjusting a setting in the learning environment. In the meantime, you can click this link to open Dodona in a new window.
Warning! The page was not fully loaded, probably because of a network issue. It could be that not all functionalities work as expected. Please try reloading the page.
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 <-...