.dca_binary | R Documentation |
Fit Bayesian Decision Curve Analysis using Stan for list of models or binary tests
.dca_binary(
n_thr,
strategies,
N,
d,
tp,
tn,
thresholds,
prior_p1,
prior_p2,
prior_Se1,
prior_Se2,
prior_Sp1,
prior_Sp2,
N_ext = 0,
d_ext = 0,
n_draws = 4000
)
n_thr |
Number of thresholds (int.). |
N |
Sample size (vector of integers of length |
d |
Diseased: number of diseased persons or
events (vector of integers of length |
tp |
True Positives: number of diseased persons correctly
identified as such by the diagnostic test of prediction
model (matrix of integers of size |
tn |
True Negatives: number of diseased persons correctly
identified as such by the diagnostic test of prediction
model (matrix of integers of size |
thresholds |
Numeric vector with probability thresholds with which
the net benefit should be computed (default is |
N_ext, d_ext |
External sample size and number of diseased individuals (or cases), respectively, used to adjust prevalence. |
n_strategies |
Number of models or binary tests (int.). |
prior_p, prior_se, prior_sp |
Prior parameters for
prevalence, sensitivity, and specificity (numeric matrices
of size |
refresh |
Control verbosity of
|
... |
Arguments passed to
|
An object of class
stanfit
returned by rstan::sampling
(e.g. iter, chains)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.