simdata {straweib} | R Documentation |
Simulated data with mixed types of events
Description
This simulated data contains event times that are left censored, right censored, interval censored, or non-censored (observed event). The data is generated from a stratified Weibull distribution model in which each stratum is assumed to have an independent stratum-specific shape parameter. In addition, the regression coefficients corresponding to the vector of explanatory variables excluding the stratum indicator are assumed to be constant across strata.
Usage
simdata
Format
A data frame with 298 observations on the following 6 variables:
ID
subject id
strata
strata
cov1
a continuous covariate
cov2
a continuous covariate
left
left endpoint of censoring interval
right
right endpoint of censoring interval
References
see icweib
for details on how to set L and
R for different types of events.
Examples
data(simdata)
[Package straweib version 1.1 Index]