Diagnostic Prevalence
gg_diagnostic_prev.Rd
Compare PPV or NPV by sensitivity, specificity, and prevalence.
Arguments
- se
a vector of sensitivity estimates. For
gg_prev_fixed
, must be a vector of length 3 for lower bound, pooled estimate, and upper bound.- sp
a vector of specificity estimates. For
gg_prev_fixed
, must be a vector of length 3 for lower bound, pooled estimate, and upper bound. Forgg_diagnostic_prev
, a sequence of values to plot along x-axis.- p
a vector of prevalence values. For
gg_prev_fixed
, must be a sequence of values to plot along x-axis.- result
whether to show the PPV or NPV on the y-axis
- layout
whether to plot confidence region using "lines" or a filled "band."
Details
gg_diagnostic_prev
plots positive predictive value (PPV) or negative
predictive value (NPV) as a function of specificity, with sensitivity
separated by line types and prevalence shown across facets.
gg_prev_fixed
plots PPV or NPV as a function of prevalence, with coloured
lines separating fixed pairs of sensitivity and specificity for the lower
bound, pooled estimate, and upper bound.