Aan de slagGa gratis aan de slag

Computing a Weibull and a log-normal model

In this exercise, we want to compute a Weibull model and a log-normal model for the GBSG2 data. You will see that the process of computing the survival curve is the same. In the upcoming exercise, we will compare the results from the two models and see the differences.

The survival, survminer, and reshape2 packages and the GBSG2 data are loaded for you in this exercise.

Deze oefening maakt deel uit van de cursus

Survival Analysis in R

Cursus bekijken

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Weibull model
wbmod <- ___(Surv(time, cens) ~ horTh, data = GBSG2)

# Log-Normal model
lnmod <- ___(Surv(time, cens) ~ horTh, data = GBSG2, ___ = "lognormal")
Code bewerken en uitvoeren