Compute ARLs of the Bernoulli CUSUM control charts using simulation.
bcusum_arl_sim(r, h, df, R0 = 1, RA = 2)
Integer Vector. Number of runs.
Double. Control Chart limit for detecting deterioration/improvement.
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.
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.