- cox1
A fitted phreg object for the recurrent event rate, or a
fitted recreg (Ghosh-Lin) object. The model type is detected
automatically from the class.
- coxd
A fitted phreg object for the terminal event. May be
NULL if no terminal event is modelled.
- n
Number of subjects to simulate. Default is 1.
- data
The data frame on which cox1 and coxd were fitted,
used to draw covariate values for the simulated subjects. If NULL,
covariates must be supplied via r1, rd, strata1, and
stratad.
- type
Simulation type: "default" (auto-detected from class of
cox1), "cox-cox", or "gl-cox".
- id
Name of the subject identifier variable in data. Default is
"id".
- varz
Variance of the frailty distribution in the two-stage model.
Default is 1.
- share
Proportion of the shared frailty assigned to the recurrent event
process in the partial-sharing model. Default is 1.
- cens
Rate of exponential censoring. Default is 0.001.
- scale1
Scalar multiplier for the baseline cumulative hazard of the
recurrent event process. Default is 1.
- scaled
Scalar multiplier for the baseline cumulative hazard of the
terminal event. Default is 1.
- dependence
If non-NULL, falls back to
sim_recurrent_list with this frailty structure (see
sim_recurrentII for valid values). Default is NULL.
- r1
Optional numeric vector of length n of subject-specific
relative risks for the recurrent event, used when data = NULL.
- rd
Optional numeric vector of length n of subject-specific
relative risks for the terminal event, used when data = NULL.
- rc
Optional numeric vector of length n of subject-specific
censoring rate multipliers.
- strata1
Optional integer vector of length n specifying the
stratum index (0-based) for the recurrent event model, used when
data = NULL.
- stratad
Optional integer vector of length n specifying the
stratum index (0-based) for the terminal event model, used when
data = NULL.
- death.code
Integer status code used for the terminal event in the
output status column. Default is 3.
- ...
Further arguments passed to sim_GLcox, including
nmin and nmax for the linear approximation grid.