Stata 15 help for bitowt

Title

[D] bitowt -- Convert binary frequency records to frequency-weighted data

Syntax

bitowt case#_var pop_var [if exp] [in range] [, case(newvarname) weight(newvarname) ]

Description

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.

Options

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 assumed.

Examples

. bitowt deaths N . bitowt deaths N, case(cases) weight(wt)


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index