Description Usage Arguments Details Value References Examples
Compute alarm threshold of risk-adjusted CUSUM charts assuming a beta distributed patient mix.
1 2 3 4 5 | racusum_beta_crit_mc(L0, shape1, shape2, g0, g1, RA, RQ = 1, method = 1,
r = 600, jmax = 4, verbose = TRUE)
racusum_beta_crit_sim(L0, shape1, shape2, g0, g1, RA = 2, RQ = 1, nc = 1,
rs = 71, hmax = 30, jmax = 4, m = 10000, verbose = FALSE)
|
L0 |
Double. Prespecified Average Run Length. |
shape1 |
Double. Shape parameter alpha |
shape2 |
Double. Shape parameter beta |
g0 |
Double. Estimated intercept coefficient from a binary logistic regression model. |
g1 |
Double. Estimated slope coefficient 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 |
RQ |
Double. Defines the true performance of a surgeon with the odds ratio ratio of death
|
method |
Character. If |
r |
Double. Matrix system dimension. |
jmax |
Integer. Number of digits for grid search. |
verbose |
Logical. If |
nc |
Integer. Number of cores used for parallel processing. Value is passed to
|
rs |
Integer. Maximum risk score. |
hmax |
Integer. Maximum value of |
m |
Integer. Number of simulation runs. |
Determines the control limit ("h
") for a given in-control ARL ("L0"
) using
racusum_beta_arl_mc
or racusum_beta_arl_sim
and
parSapply
by applying a grid search.
Returns a single value which is the control limit h
for a given In-control ARL.
Brook D and Evans DA (1972) An approach to the probability distribution of CUSUM run length. Biometrika, 59(3), pp. 539–549
1 2 3 4 5 6 7 8 9 10 | ## Not run:
library(vlad)
## Markov Chain
racusum_beta_crit_mc(L0=7500, shape1=.61, shape2=4.09, g0=-3.6798, g1=0.0768*71, RA=2, RQ=1,
r=1e3)
## Monte Carlo simulation
racusum_beta_crit_sim(L0=7500, shape1=.61, shape2=4.09, g0=-3.6798, g1=0.0768, RA = 2, RQ = 1,
rs = 71, verbose=TRUE, m=1e3)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.