stageshift_indicator: Sim indicator of stageshift from binomial

Description Usage Arguments Value Examples

View source: R/earlydetect.R

Description

Sim indicator of stageshift from binomial

Usage

1
stageshift_indicator(x, pop_size, nsim)

Arguments

x

Hazard ratio for early detection (i.e., 1-proportion stage shifted)

pop_size

Population size

nsim

Number of sims

Value

Matrix of 1s and 0s

Examples

1
2
# Hazard = 0.85, e.g. 15% probability of being stage-shifted
round(mean(stageshift_indicator(0.85, 1000, 1)),2)

cancerpolicy/bcimodel documentation built on June 15, 2018, 12:31 a.m.