CalcORatio: CalcORatio

Description Usage Arguments Value Examples

View source: R/CalcORatio.R

Description

This function returns the o_ratio a surrogate guided sampling design for a binary outcome compared to a random sample

Usage

1
CalcORatio(zsens, zspec, R = 0.5, pz)

Arguments

zsens

numeric; sensitivity of the surrogate Z for the outcome

zspec

numeric; specificity of the surrogate Z for the outcome

R

numeric; ratio of surrogate positives in sample i.e. P(Z=1|S=1)

pz

numeric; prevalence of surrogate in cohort i.e. P(Z=1)

Value

the Oratio of the sample

Examples

1
CalcORatio(0.2,0.8,0.5,0.12)

wlktan/surrogateSampling documentation built on May 23, 2019, 3:07 p.m.