Session Ready
Exercise

Visualising a Weibull model

In this exercise we will reproduce the example from the video following the steps:

  • Compute Weibull model
  • Decide on "imaginary patients"
  • Compute survival curves
  • Create data.frame with survival curve information
  • Plot

We will focus now on the last two steps.

The survival, survminer, and reshape2 packages and the GBSG2 data are loaded for you in this exercise. The Weibull model wbmod and the imaginary patient data newdat you already computed are also available.

Instructions 1/4
undefined XP
  • 1
  • 2
  • 3
  • 4
  • Use melt() to bring the data.frame to long format. Let's call the variable and value names "surv_id" and "time" respectively.