help midas ord2binalso see: midas

Title

midas ord2bin -- Convert ordinal test data to 2x2 tables at optimal threshold

Syntax

midas ord2bin
score dis_n nondis_n total_dis total_nondis
[if exp]
[in range]
,
idvar(varname)
savedata(filename)
[threshold(string)
replace
detail
noisily]

Description

midas ord2bin converts ordinal or multi-threshold diagnostic test
data to a single 2x2 table by selecting the optimal threshold (maximising
the Youden index) for each study. The five required variables are:

score ordinal test score or threshold value

dis_n number of diseased at this score

nondis_n number of non-diseased at this score

total_dis total diseased in study

total_nondis total non-diseased in study

Options

idvar(varname) study identifier variable. Required.

savedata(filename) output dataset with 2x2 counts. Required.

threshold(string) manually specify the threshold rather
than using the optimal Youden index.

replace overwrites an existing output file.

detail displays intermediate threshold calculations.

noisily shows all computation steps.

Example

. midas ord2bin score dis nondis totaldis totalnondis, idvar(study) savedata(binary.dta, replace)

Also see

midas, midas con2bin, midas ipd2ad