racusum_ad_sim: Compute steady-state ARLs of RA-CUSUM control charts using...

Description Usage Arguments Value Author(s)

View source: R/racusum_sim.R

Description

Compute steady-state ARLs of risk-adjusted cumulative sum control charts using simulation.

Usage

1
racusum_ad_sim(r, pmix, h, RA = 2, RQ = 1, m = 50, type = "cond")

Arguments

r

Integer Vector. Number of runs.

pmix

Data Frame. A three column data frame. First column is the operation outcome. Second column are the predicted probabilities from the risk model. Third column can be either the predicted probabilities from the risk model or average outcome.

h

Double. Control Chart limit for detecting deterioration/improvement.

RA

Double. Odds ratio of death under the alternative hypotheses. Detecting deterioration in performance with increased mortality risk by doubling the odds Ratio RA = 2. Detecting improvement in performance with decreased mortality risk by halving the odds ratio of death RA = 1/2. Odds ratio of death under the null hypotheses is 1.

RQ

Double. Defines the true performance of a surgeon with the odds ratio ratio of death RQ. Use RQ = 1 to compute the in-control ARL and other values to compute the out-of-control ARL.

m

Integer. Simulated in-control observations.

type

Character. Default argument is "cond" for computation of conditional steady-state. Other option is the cyclical steady-state "cycl".

Value

Returns a single value which is the Run Length.

Author(s)

Philipp Wittenberg


vlad documentation built on Feb. 15, 2021, 5:12 p.m.