CommencerCommencer gratuitement

Comparing Weibull and Log-Normal Model II

In this exercise, we want to compare the survival curves estimated by a Weibull model and by a log-normal model for the GBSG2 data. This exercise shows how the estimates change if you use a different distribution.

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

Cet exercice fait partie du cours

Survival Analysis in R

Afficher le cours

Instructions

  • Plot the survival curves using the ggsurvplot_df() function. The linetype should correspond to the hormonal therapy and the color to the distribution (dist).

Exercice interactif pratique

Essayez cet exercice en complétant cet exemple de code.

# Plot the survival curves
ggsurvplot_df(surv_long, surv.geom = ___,
              linetype = ___, color = ___, legend.title = NULL)
Modifier et exécuter le code