Learn R Programming

vlad (version 0.2.0)

bcusum_arl_sim: Compute ARLs of the Bernoulli CUSUM control charts using simulation

Description

Compute ARLs of the Bernoulli CUSUM control charts using simulation.

Usage

bcusum_arl_sim(r, h, df, R0 = 1, RA = 2)

Arguments

r

Integer Vector. Number of runs.

h

Double. Control Chart limit for detecting deterioration/improvement.

df

Data Frame. First column are Parsonnet Score values within a range of 0 to 100 representing the preoperative patient risk. The second column are binary (0/1) outcome values of each operation.

R0

Double. Odds ratio of death under the null hypotheses.

RA

Double. Odds ratio of death under the alternative hypotheses.

Value

Returns a single value which is the Run Length.