Learn R Programming

vlad (version 0.1.0)

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

Description

Compute ARLs of the Bernoulli CUSUM control charts using simulation.

Usage

cusum_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

DataFrame. First column are Parsonnet Score values within a range of zero 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.