*! version 2.7.1 26mar2026 Ben A. Dwamena (University of Michigan)

Title

midas_bivbox -- Robust bivariate boxplot for diagnostic test accuracy data

Syntax

midas_bivbox tp fp fn tn [if] [in]
[, robust classical
id(varname)
cutoff(#)
cc(#)
labeloutliers
innerlevel(#)
outerpattern(string)
innerpattern(string)
aspect(#)
xtitle(string)
ytitle(string)
title(string)
subtitle(string)
name(name)
replace
normtest
robnormtest
bacontest
twoway_options]

Description

midas_bivbox draws a bivariate boxplot for diagnostic test accuracy
meta-analysis. Counts are internally transformed to logit sensitivity and
logit specificity. The plot shows an inner ellipse (central region), an outer
ellipse (outlier fence), and two symmetry lines.

Options

robust robust estimation (default).

classical classical estimation.

cc(#) continuity correction; default 0.5.

cutoff(#) outer ellipse multiplier; default 7.

innerlevel(#) inner ellipse quantile; default 0.50.

id(varname) study identifier.

labeloutliers label studies outside the outer ellipse.

normtest classical multivariate normality test (mvtest normality).

robnormtest robust QQ ellipticity diagnostic.

bacontest BACON multivariate outlier screening (requires ssc install bacon).

Stored results

Scalars: r(n), r(n_out), r(corr), r(cc), r(cutoff)

Matrices: r(center), r(scale), r(bounds)

Locals: r(link), r(input_mode), r(diag_color), r(diag_text)

robnormtest: r(robnorm_rqq), r(robnorm_slope), r(robnorm_intercept), r(robnorm_maxdev)

bacontest: r(bacon_outliers), r(bacon_prop)

normtest: r(normtest_p)

Examples

. midas_bivbox tp fp fn tn

. midas_bivbox tp fp fn tn, robust id(study) labeloutliers

. midas_bivbox tp fp fn tn, robust robnormtest

. midas_bivbox tp fp fn tn, normtest

Author

Ben Adarkwa Dwamena, MD

University of Michigan

bdwamena@umich.edu