| Simdata {TGST} | R Documentation |
Simulated data for package illustration
Description
A simulated dataset containing true disease status and risk score. See details for simulation setting.
Usage
data(Simdata)
Format
A data frame with 8000 simulated observations on the following 2 variables.
ZTrue disease status (No disease / treatment success coded as Z=0, diseased / treatment failure coded as Z=1).
SRisk score. Higher risk score indicates larger tendency of diseased / treatment failure.
Details
We first simulate viral status Z assuming Z\sim Bernoulli(p) with p=0.25; and then conditional on Z, simulate {S|Z=z}=ceiling(W) with W\sim Gamma(\eta_z,\kappa_z) where \eta and \kappa are shape and scale parameters.(\eta0,\kappa0)=(2.3,80) and (\eta1,\kappa1)=(9.2,62).
Examples
data(Simdata)
## maybe str(Simdata) ; plot(Simdata) ...
[Package TGST version 1.0 Index]