dat.sim.reg.comp.risks {depCensoring} | R Documentation |
Data generation function for competing risks data
Description
This function generates competing risk data that can be used in simulation studies.
Usage
dat.sim.reg.comp.risks(
n,
par,
iseed,
s,
conf,
Zbin,
Wbin,
type.cov,
A.upper = 15
)
Arguments
n |
The sample size of the generated data set. |
par |
List of parameter vectors for each component of the transformation model. |
iseed |
Random seed. |
s |
The number of competing risks. Note that the given parameter vector could specify the parameters for the model with more than s competing risks, but in this case only the first s sets of parameters will be considered. |
conf |
Boolean value indicating whether the data set should contain confounding. |
Zbin |
Indicator whether the confounded variable is binary
|
Wbin |
Indicator whether the instrument is binary ( |
type.cov |
Vector of characters "c" and "b", indicating which exogenous
covariates should be continuous |
A.upper |
The upper bound on the support of the administrative censoring
distribution. This can be used to control for the amount of administrative
censoring in the data. Default is |
Value
A generated data set