transformData | R Documentation |
Transform a survival dataset from short to long form
transformData(df, freq.time)
df |
A data frame containing columns T (time to event) and C (censoring indicator) |
freq.time |
If time T must be ccategorized into coarser intervals (e.g., use freq.time = 7 if T is in days and you want the output in weeks) |
A long form data set
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.