Learn R Programming

TGST (version 1.0)

Simdata: Simulated data for package illustration

Description

A simulated dataset containing true disease status and risk score. See details for simulation setting.

Usage

data(Simdata)

Arguments

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 \(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

Run this code
# NOT RUN {
data(Simdata)
## maybe str(Simdata) ; plot(Simdata) ...
# }

Run the code above in your browser using DataLab