cut_surv(data, event, time, at, cuttime = TRUE, rename = NULL, censval = NULL)
Data.
Event that should be cut.
Time that should be cut. See also cuttime.
At what time point should event/time be cut? In units of time.
Should time be cut? (can be needed for later evaluation). Default is TRUE.
Suffix if event and time should be renamed. Default is not to rename.
Value of censoring in variable event. If not given the function will use 0 if event is numeric or "No" if event is character or factor if these exist in event.
Data with cut event and time variable.
rs_data <- cut_surv(rs_data, out_death_fac, outtime_death, at = 365, rename = "1yr")