ragscusum {cusum}R Documentation

RA-Grouped-CUSUM chart

Description

Calculate GSCUSUM chart for risk-adjusted processes.

Usage

ragscusum(input_ra_outcomes, limit, quantiles, max_num_shuffles = 10000L,
  seed = 0L)

Arguments

input_ra_outcomes

Matrix. First column are binary patient outcomes (0,1). Second column are patient individual weight for adverse event (failure) and third column patient individual weight for no adverse event (success). Fourth column are continuous sequence of block identifier.

limit

Double. Control limit for signalling performance change

quantiles

Double. Vector of requested quantiles of RA-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

ragscusum NumericMatix, signal probability, average CUSUM value and specified quantiles for every observation.


[Package cusum version 0.4.1 Index]