Ex4belly: Time-to-event data example 4 for non-proportional hazards...

Ex4bellyR Documentation

Time-to-event data example 4 for non-proportional hazards working group

Description

Survival objects reverse-engineered datasets from published Kaplan-Meier curves. Individual trials are de-identified since the data are only approximations of the actual data. Data are intended to evaluate methods and designs for trials where non-proportional hazards may be anticipated for outcome data.

Usage

data(Ex4belly)

Format

Data frame with 4 variables:

id

sequential numbering of unique identifiers

month

time-to-event

event

1 for event, 0 for censored

trt

1 for experimental, 0 for control

References

TBD

See Also

Ex1delayedEffect, Ex2delayedEffect, Ex3curewithph, Ex5widening, Ex6crossing

Examples

library(survival)
data(Ex4belly)
km1 <- with(Ex4belly,survfit(Surv(month,evntd)~trt))
km1
plot(km1)

keaven/simtrial documentation built on April 17, 2023, 4:03 a.m.