Ex5widening: Time-to-event data example 5 for non-proportional hazards...

Description Usage Format References See Also Examples

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

1

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, Ex3belly, Ex4belly, Ex6crossing

Examples

1
2
3
4
5
6
7
data(Ex5widening)
library(survival)
km1 <- with(Ex5widening,survfit(Surv(month,evntd)~trt))
km1
plot(km1)
with(subset(Ex5widening,trt==1),pwexpfit(Srv=Surv(month,evntd),array(6,3)))
with(subset(Ex5widening,trt==0),pwexpfit(Srv=Surv(month,evntd),array(6,3)))

keaven/nphsim documentation built on July 2, 2018, 1:10 a.m.