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 ZZ assuming ZBernoulli(p)Z\sim Bernoulli(p) with p=0.25p=0.25; and then conditional on ZZ, simulate SZ=z=ceiling(W){S|Z=z}=ceiling(W) with WGamma(ηz,κz)W\sim Gamma(\eta_z,\kappa_z) where η\eta and κ\kappa are shape and scale parameters.(η0,κ0)=(2.3,80)(\eta0,\kappa0)=(2.3,80) and (η1,κ1)=(9.2,62)(\eta1,\kappa1)=(9.2,62).

Examples

data(Simdata)
## maybe str(Simdata) ; plot(Simdata) ...

[Package TGST version 1.0 Index]