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.
Z
True disease status (No disease / treatment success coded as Z=0, diseased / treatment failure coded as Z=1).
S
Risk score. Higher risk score indicates larger tendency of diseased / treatment failure.
Details
We first simulate viral status assuming
with
; and then conditional on
, simulate
with
where
and
are shape and scale parameters.
and
.
Examples
data(Simdata)
## maybe str(Simdata) ; plot(Simdata) ...
[Package TGST version 1.0 Index]