Description Usage Arguments Details Value Author(s) See Also
Convert time-to-event data (typically created with the Surv
function) to factor or integer.
1 | dichotomize(x, time, to_factor)
|
x |
|
time |
Time point to dichotomize at. |
to_factor |
Depending on the type of |
If no time point is given the observation times will be stripped, leaving
only the event types. If a time point is given
observations with events occurring before time
will be labelled by
their event type,
observations with events occurring after time
will be labelled as
“no event”, and
observations censored before time
will be considered as missing
information.
Integer vector or factor.
Christofer Bäcklin
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.