Description Usage Arguments Details Value Author(s) Examples
View source: R/racusum_betabinomial_sim.R
Compute alarm threshold of risk-adjusted cumulative sum control charts using simulation.
1 2 | racusum_betabinomial_crit_sim(L0, shape1, shape2, coeff, RA = 2, rs = 71,
RQ = 1, m = 10000, nc = 1, hmax = 30, jmax = 4, verbose = FALSE)
|
L0 |
Double. Prespecified in-control Average Run Length. |
shape1 |
Double. Shape parameter alpha |
shape2 |
Double. Shape parameter beta |
coeff |
Numeric Vector. Estimated intercept and slope coefficients from a binary logistic regression model. |
RA |
Double. Odds ratio of death under the alternative hypotheses. Detecting deterioration
in performance with increased mortality risk by doubling the odds Ratio |
rs |
Integer. Maximum risk score. |
RQ |
Double. Defines the performance of a surgeon with the odds ratio ratio of death
|
m |
Integer. Number of simulation runs. |
nc |
Integer. Number of cores used for parallel processing. Value is passed to
|
hmax |
Integer. Maximum value of |
jmax |
Integer. Number of digits for grid search. |
verbose |
Logical. If |
Determines the control limit ("h
") for given in-control ARL ("L0"
)
applying a grid search using racusum_betabinomial_arl_sim
and
parSapply
.
Returns a single value which is the control limit h
for a given in-control ARL.
Philipp Wittenberg
1 2 3 4 5 6 | ## Not run:
library(vlad)
racusum_betabinomial_crit_sim(L0=100, shape1=1, shape2=3, coeff=c(-3.6798, 0.0768), RA = 2,
rs = 71, RQ = 1, verbose=TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.