cut_data_by_date | R Documentation |
Cut a Dataset for Analysis at a Specified Date
cut_data_by_date(x, cut_date)
x |
a time-to-event dataset, e.g., generated by |
cut_date |
date relative to start of randomization ( |
A dataset ready for survival analysis
# Use default enrollment and event rates and
# cut at calendar time 5 after start of randomization
library(dplyr)
sim_pw_surv(n = 20) %>% cut_data_by_date(5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.