The function simSC()
generates simulated recurrent event data from either
a Cox-type model, an accelerated mean model, an accelerated rate model, or a scale-change model.
simSC(
n,
a1 = a2,
b1 = b2,
a2 = a1,
b2 = b1,
type = "cox",
zVar = 0.25,
tau = 60,
summary = FALSE
)
number of observation.
are numeric vectors of length 2.
These correspond to the
is a character string specifying the underlying model.
The rate function type and the hazard function type are separated by a vertical bar "|",
with the rate function on the left. For example, type = "cox|am"
generates the recurrent process from a Cox model and
the terminal event from an accelerated mean model. Setting type = "cox"
gives type = "cox|cox"
.
a numeric variable specifying the variance of the fraility variable,zVar
> 0.
When zVar
= 0,
a numeric value specifying the maximum observation time.
a logical value indicating whether a brief data summary will be printed.
The function simSC()
generates simulated recurrent event data over
the interval
For all scenarios, two covariates are considered;
# NOT RUN {
set.seed(123)
simSC(100, c(-1, 1), c(-1, 1), summary = TRUE)
# }
Run the code above in your browser using DataLab