Learn R Programming

vlad (version 0.2.0)

eocusum_adoc_sim: Compute steady-state ARLs of EO-CUSUM control charts using simulation

Description

Compute steady-state ARLs of EO-CUSUM control charts using simulation.

Usage

eocusum_adoc_sim(r, k, h, df, coeff, coeff2, QS = 1, side = "low",
  type = "cond", m = 50)

Arguments

r

Integer. Number of of simulation runs.

k

Double. Reference value of the CUSUM control chart. Either 0 or a positive value. Can be determined with function optimal_k.

h

Double. Decision interval (alarm limit, threshold) of the CUSUM control chart.

df

Data Frame. First column Parsonnet Score and second column outcome of each operation.

coeff

Numeric Vector. Estimated coefficients \(\alpha\) and \(\beta\) from the binary logistic regression model.

coeff2

Numeric Vector. Estimated coefficients \(\alpha\) and \(\beta\) from the binary logistic regression model of a resampled dataset.

QS

Double. Defines the performance of a surgeon with the odds ratio ratio of death Q.

side

Character. Default is "low" to calculate ARL for the upper arm of the V-mask. If side = "up", calculate the lower arm of the V-mask.

type

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

m

Integer. Simulated in-control observations.

Value

Returns a single value which is the Run Length.

Examples

Run this code
# NOT RUN {
# This function is deprecated. See eocusum_ad_sim() instead.

 
# }

Run the code above in your browser using DataLab