help midas con2binalso see: midas

Title

midas con2bin -- Convert continuous test data to 2x2 tables

Syntax

midas con2bin
n1 x1 sd1 n0 x0 sd0
[if exp]
[in range]
,
id(string)
[savedata(filename)]

Description

midas con2bin converts continuous test result data (means and
standard deviations in diseased and non-diseased groups) to 2x2
diagnostic accuracy tables, assuming a binormal model.

The six required variables, in order, are:

n1 number of diseased subjects

x1 mean test value in diseased

sd1 standard deviation in diseased

n0 number of non-diseased subjects

x0 mean test value in non-diseased

sd0 standard deviation in non-diseased

The optimal threshold is derived under the binormal model and used to
compute implied sensitivity and specificity, from which integer counts
tp, fp, fn, tn are generated.

Options

id(string) study identifier label. Required.

savedata(filename) saves the resulting dataset with the
2x2 counts to filename.

Example

. midas con2bin n1 x1 sd1 n0 x0 sd0, id(study) savedata(binary.dta)

Also see

midas, midas ord2bin, midas ipd2ad