Usage
HSROCSummary(data, burn_in = 0, iter.keep = NULL, Thin = 1, sub_rs=NULL,
point_estimate = c("median", "mean"), summary.path = getwd(),
chain = getwd(), tv = NULL, digit = 6, print_plot = FALSE,
plot.ind.studies = TRUE, cred_region = TRUE, predict_region = TRUE,
col.pooled.estimate = "red", col.predict.region = "blue",
lty.cred.region = "dotdash", lty.predict.region = "dotted",
region_level = 0.95, trunc_low = 0.025, trunc_up = 0.025 )Arguments
data
a matrix with the number of rows equal to the number of studies and 4 columns. Each row consists of the entries of the 2x2 table of the index test (i.e. test under evaluation) vs. the reference test reported in each study. The ordering of the columns is
burn_in
The number of early iterations that are to be dropped. The default value is 0.
iter.keep
Maximum number of iteration we want to keep.
Thin
a single numeric value. It sets the numerical field used to select every thin-th iteration to contribute to the estimates being calculated. The default value is 1.
sub_rs
a list that describes the partition of the reference standard among the studies, if any. See details for further explanations.
point_estimate
a character string indicating which method is to be used to calculate the estimates. One of "median" (default) or "mean", can be used
summary.path
a character string pointing to the directory where the SUMMARY files are to be stored.
chain
A list of character strings pointing to each directory, one for each chain, where the files created during the Gibbs sampler process are stored.
tv
a list of true parameter values. See details for further explanations
digit
integer indicating the number of decimal places to be used. The default value is 6.
print_plot
logical. If TRUE, pdf files of trace, density and summary receiver operating characteristic (SROC) curve plots are saved in the summary.path working directory to help assess convergence of the Gibbs sampler.
plot.ind.studies
logical. If TRUE (default), empty circles representing individual studies are drawn on the SROC plot. The radius of the circles are proportional to the sample size of the studies.
cred_region
logical. If TRUE (default), a credible region curve is drawn on the SROC plot.
predict_region
logical. If TRUE (default), a prediction region curve is drawn on the SROC plot.
col.pooled.estimate
A specification for the default SROC plotting color of the pooled estimate point and credible region curve. Defaults to "red".
col.predict.region
A specification for the default SROC plotting color of the prediction region curve. Defaults to "blue".
lty.cred.region
The credible region line type. Default to "dotdash"
lty.predict.region
The prediction region line type. Default to "dotted"
region_level
The credible (prediction) level required for the credible (prediction) region.
trunc_low
Lower limit truncation entering the creation of the SROC curve. Default to 0.025. See details for further explanations.
trunc_up
Upper limit truncation entering the creation of the SROC curve. Default to 0.025. See details for further explanations.