CUSUM Charts for Monitoring of Hospital Performance

Provides functions for constructing and evaluating CUSUM charts and RA-CUSUM charts with focus on false signal probability.


The goal of cusum is to provide functions for constructing and evaluating CUSUM charts and RA-CUSUM charts with focus on false signal probability.

Installation

You can install the released version of cusum from CRAN with:

install.packages("cusum")

Example

This is a basic example which shows you how to construct CUSUM charts with simulated control limits:

library(cusum)
 
limit <- cusum_limit_sim(failure_probability = 0.05,
                          n_patients = 100,
                          odds_multiplier = 2,
                          n_simulation = 1000,
                          alpha = 0.05,
                          seed = 2018)
print(limit)
#> [1] 2.712558
set.seed(2018)
patient_outcomes <- as.logical(rbinom(n = 100, size = 1, prob = 0.05))
 
cs <- cusum(failure_probability = 0.05,
            patient_outcomes,
            limit,
            odds_multiplier = 2)
 
plot(cs)

News

cusum 0.2.0 (2019/03/15)

New features

  • S3 method for plot.cusum()
  • cusum class

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("cusum")

0.3.0 by Lena Hubig, 9 days ago


Browse source code at https://github.com/cran/cusum


Authors: Lena Hubig [aut, cre]


Documentation:   PDF Manual  


GPL-2 license


Imports stats, graphics, checkmate, data.table, Rcpp

Suggests testthat, knitr, rmarkdown


See at CRAN