Compute ARLs of the Bernoulli CUSUM control charts using simulation.
cusum_arl_sim(r, h, df, R0 = 1, RA = 2)
Integer vector. Number of runs.
double. Control Chart limit for detecting deterioration/improvement.
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.
double. Odds ratio of death under the null hypotheses.
double. Odds ratio of death under the alternative hypotheses.
Returns a single value which is the Run Length.