| prepResponseVar | R Documentation |
Allowed censoring types are right-, left-, and interval-censoring.
If y0 is not NULL this function will return either both numeric, non-Surv or both Surv-objects of the same type.
prepResponseVar(x0, y0 = NULL, simplify = TRUE)
x0 |
response as numeric or survival::Surv using left, right or interval-coding |
y0 |
response as numeric or survival::Surv using left, right or interval-coding |
simplify |
logical. Should the result be as simple as possible? If |
a list of the two responses, either both as survival::Surv or plain numeric (if no censorings and simplify=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.