SimuData | R Documentation |
SimuData
is a simulated data set that is used to show the utility of this package. Under the semi-competing risks data setup, each subject has a non-terminal and a terminal event that may be right censored. Furthermore, the terminal event may censor the non-terminal event.
data("SimuData")
A data frame with 3500 observations on the following 5 variables.
yh
Time to the non-terminal event of interest or censoring (by an independent censoring variable or a terminal event)
hcen
Censoring indicator for the non-teminal event (event = 1, censored = 0)
yd
Time to the terminal event of interest
dcen
Censoring indicator for the teminal event (event = 1, censored = 0)
z
Group indicator (treatment = 1, control = 0)
wr.test
data(SimuData) # non-terminal events yh <- SimuData$yh hcen <- SimuData$hcen # terminal events yd <- SimuData$yd dcen <- SimuData$dcen # group indicator z <- SimuData$z # Win Ratio tests result <- wr.test(yh, hcen, yd, dcen, z) print(result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.