View source: R/dataGeneratingFunction.R
dat.sim.reg.comp.risks | R Documentation |
This function generates competing risk data that can be used in simulation studies.
dat.sim.reg.comp.risks(
n,
par,
iseed,
s,
conf,
Zbin,
Wbin,
type.cov,
A.upper = 15
)
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 |
A generated data set
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.