Last chance! 50% off unlimited learning
Sale ends in
Compute alarm threshold of risk-adjusted cumulative sum control charts using simulation.
racusum_discretebeta_crit_sim(L0, shape1, shape2, coeff, rs = 72, RA = 2,
RQ = 1, nc = 1, hmax = 30, jmax = 4, m = 10000, verbose = FALSE)
Double. Prespecified in-control Average Run Length.
Double. Shape parameter > 0
of the beta distribution.
Double. Shape parameter > 0
of the beta distribution.
Numeric Vector. Estimated intercept and slope coefficients from a binary logistic regression model.
Integer. Number of intervals between 0
and the maximum risk score.
Double. Odds ratio of death under the alternative hypotheses. Detecting deterioration
in performance with increased mortality risk by doubling the odds Ratio RA = 2
. Detecting
improvement in performance with decreased mortality risk by halving the odds ratio of death
RA = 1/2
.
Double. Defines the performance of a surgeon with the odds ratio ratio of death.
Q
.
Integer. Number of cores used for parallel processing. Value is passed to
parSapply
.
Integer. Maximum value of h
for the grid search.
Integer. Number of digits for grid search.
Integer. Number of simulation runs.
Logical. If TRUE
verbose output is included, if FALSE
a quiet
calculation of h
is done.
Returns a single value which is the control limit h
for a given in-control ARL.
Determines the control limit ("h
") for given in-control ARL ("L0"
)
applying a grid search using racusum_discretebeta_arl_sim
and
parSapply
.
# NOT RUN {
library(vlad)
racusum_discretebeta_crit_sim(L0=7500, shape1=.61, shape2=4.09, rs=(71+1),
coeff=c(-3.6798, .0768), RA=2, RQ=1, nc=4, verbose=TRUE, m=1e3)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab