Description Usage Arguments Author(s) Examples
Calculate non-risk-adjusted CUSUM charts for performance data
Provides functions for constructing and evaluating CUSUM charts and RA-CUSUM charts with focus on false signal probability in health care processes.
1 2 |
failure_probability |
Double. Baseline failure probability |
patient_outcomes |
Integer. Vector of binary patient outcomes (0,1) |
limit |
Double. Control limit for signalling performance change |
weights |
Double. Optional vector of weights, if empty, standard CUSUM weights are calculated with weights_t |
odds_multiplier |
Double. Odds multiplier of adverse event under the alternative hypothesis (<1 looks for decreases) |
reset |
Logical. Reset the CUSUM after a signal to 0; defaults to TRUE |
Lena Hubig
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | # control limit can be obtained with cusum_limit_sim(),
# here it is set to an arbitrary value (2.96)
# CUSUM of in-control process
# simulate patient outcomes
set.seed(2046)
patient_outcomes <- as.logical(rbinom(n = 100, size = 1, prob = 0.05))
cs_ic <- cusum(
failure_probability = 0.05,
patient_outcomes,
limit = 2.96
)
# CUSUM of out-of-control process
# simulate patient outcome
set.seed(2046)
patient_outcomes <- as.logical(rbinom(n = 100, size = 1, prob = 0.2))
cs_oc <- cusum(
failure_probability = 0.05,
patient_outcomes,
limit = 2.96
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.