epict_make_time_rel_to_first_uncensored | R Documentation |
Make time relative to first uncensored test per ID
epict_make_time_rel_to_first_uncensored(obs)
obs |
A data.frame with the following variables:
|
A data.table
with times relative to the first uncensored test per
ID.
Sam Abbott
Preprocessing functions
epict_check_obs()
,
epict_check_raw_obs()
,
epict_clean_factors()
,
epict_drop_na_ct()
,
epict_filter_ids()
,
epict_flag_spurious_obs()
,
epict_make_time_rel()
obs <- data.frame(
id = c(rep(1, 3), rep(2, 4)), t = c(2, 3, 4, 1, 1, 2, 8),
onset_t = c(rep(2, 3), rep(4, 4)),
censored = c(TRUE, FALSE, FALSE, TRUE, rep(FALSE, 3))
)
epict_make_time_rel_to_first_uncensored(obs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.