[D] bitowt -- Convert binary frequency records to frequency-weighted data
bitowt case#_var pop_var [if exp] [in range] [, case(newvarname)
bitowt converts binary frequency records to frequency weighted data.
case#_var specifies the variable containing the number of cases
represented by each observation and pop_var specifies the number of
subjects (cases plus controls) represented by each observation. This
command will change the data in memory.
case(newvarname) specifies the name of a new binary variable containing 1
for cases and 0 for controls. If case() is not specified,
case(_case) is assumed.
weight(newvarname) specifies the name of a variable that will contain
frequency weights. If weight() is not specified, weight(_weight) is
. bitowt deaths N
. bitowt deaths N, case(cases) weight(wt)