Surv | R Documentation |
This function just calls Surv()
from the
survival
package.
Surv(time, time2, event, type = c("right", "left", "interval", "counting",
"interval2", "mstate"), origin = 0)
time |
for right censored data, this is the follow up time. For interval data, the first argument is the starting time for the interval. |
time2 |
ending time of the interval for interval censored or counting
process data only. Intervals are assumed to be open on the left and
closed on the right, |
event |
The status indicator, normally 0=alive, 1=dead. Other choices are
|
type |
character string specifying the type of censoring. Possible values
are |
origin |
for counting process data, the hazard function origin. This option was intended to be used in conjunction with a model containing time dependent strata in order to align the subjects properly when they cross over from one strata to another, but it has rarely proven useful. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.