cut_data_by_date {simtrial} | R Documentation |
Cut a dataset for analysis at a specified date
Description
Cut a dataset for analysis at a specified date
Usage
cut_data_by_date(x, cut_date)
Arguments
x |
A time-to-event dataset, for example, generated by |
cut_date |
Date relative to start of randomization
( |
Value
A dataset ready for survival analysis.
Examples
# Use default enrollment and event rates and
# cut at calendar time 5 after start of randomization
sim_pw_surv(n = 20) |> cut_data_by_date(5)
[Package simtrial version 0.4.1 Index]