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 0=alive, 1=dead. Other choices are TRUE/FALSE (TRUE = death) or 1/2 (2=death). Although unusual, the event indicator can be omitted, in which case all subjects are assumed to have an event.

time2

ending time of the counting process data only. Intervals are assumed to be open on the left and closed on the right, (start, end]. Event indicates whether an event occurred at the end of the interval.

type

character string specifying the type of censoring. Possible values are "right" and "counting".

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

Surv

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)

[Package curephEM version 0.3.0 Index]