Surv.cure {curephEM} | R Documentation |
Survival Object with Cure Portion
Description
Create a Survival Object with Cure Portion
Usage
Surv.cure(time, time2, event, type=c("right","counting"), origin = 0, end = Inf)
## S3 method for class 'Surv.cure'
print(x, digit = getOption("digits"),...)
Arguments
time |
for right censored data, this is the follow up time. For left truncated data, the first argument is the truncation time. |
event |
The status indicator, normally |
time2 |
ending time of the counting process data only. Intervals are assumed to be open on the left and closed on the right, |
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. |
end |
the upper bound for event time. Any subject survives beyond this time is considered as an observed cure. |
x |
a 'Surv.cure' object. |
digit |
number of decimal digits in the output. |
... |
Other parameters to match the generic S3 method. |
See Also
Examples
# A simulated data set
data("sim.cureph.data")
attach(sim.cureph.data)
# Construct and print a Surv.cure object
Surv.cure(time,time2,event,origin=0,end=20)
# Detach the simulated data
detach(sim.cureph.data)