help midas ipd2adalso see: midas

Title

midas ipd2ad -- Aggregate individual participant data to study-level 2x2 tables

Syntax

midas ipd2ad
test_result reference
[if exp]
[in range]
,
by(varname)
[saving(filename)
replace
studylabel(varname)
designvar(varname)
keepvars(varlist)
noisily]

Description

midas ipd2ad converts individual participant data (IPD) to
aggregate 2x2 diagnostic accuracy tables suitable for meta-analysis
with midas. One row per participant is expected, with binary
variables for the index test result and the reference standard.

Arguments

test_result binary variable: 1 = test positive, 0 = test negative

reference binary variable: 1 = disease positive, 0 = disease negative

Options

by(varname) study identifier variable. Required.

saving(filename) saves the aggregated dataset to filename.

replace overwrites an existing saved file.

studylabel(varname) variable containing study label text.

designvar(varname) variable identifying study design subgroups.

keepvars(varlist) additional variables to carry forward to the aggregate dataset.

noisily displays the crosstabulation for each study.

Example

. midas ipd2ad testpos disease, by(studyid) saving(aggregate.dta, replace)

. use aggregate, clear

. midas mle tp fp fn tn, id(studyid)

Also see

midas, midas con2bin, midas ord2bin