gscusum {cusum}R Documentation

Group-sequential CUSUM chart

Description

Calculate GSCUSUM chart for non-risk-adjusted processes.

Usage

gscusum(input_outcomes, failure_probability, odds_multiplier, limit,
  quantiles, max_num_shuffles = 10000L, seed = 0L)

Arguments

input_outcomes

Matrix. First column are binary patient outcomes (0,1). Second column are continuous sequence of block identifier.

failure_probability

Double. Baseline failure probability

odds_multiplier

Double. Odds multiplier of adverse event under the alternative hypothesis (<1 looks for decreases)

limit

Double. Control limit for signalling performance change

quantiles

Double. Vector of requested quantiles of GSCUSUM distribution

max_num_shuffles

Integer. Number of shuffles (i.e. different sequences of observations)

seed

Integer. Seed for RNG (if = 0 random seed is set (default))

Value

gscusum matrix, signal probability, average CUSUM value and specified quantiles for every observation.


[Package cusum version 0.4.1 Index]