Purpose
Defines an event count (exit updated sum) summary variable.
Syntax
EVENT vname {AS sname} {WEIGHT wvar} @
Arguments and Subcommands
vname
The variable which will be summed. This argument is required and must be given immediately following the command. Unless the AS subcommand is used to change the name, vname will be the name of the summary variable in the resulting table.
AS sname
Indicates that sname will be the name of this summary variable in the resulting table.
WEIGHT wvar
The weight variable for computing this sum. Sums are unweighted unless the WEIGHT subcommand is used. WGT can be used instead of WEIGHT.
Remarks
The EVENT command is equivalent to the XSUM command. The sum is an exit updated sum.
Examples
a) To compute unweighted cell sums for a variable named leukemia. The name of the summary variable in the resulting table will also be called leukemia. In person-year tables, this sum will be updated only for the cell which contains the exit date. If the exit date for a record occurs outside of the time period included in the table, the sum will never be updated.
EVENT leukemia @
b) To compute unweighted cell sums of leukemia as in the first example, but use the name cases for this variable in the resulting table.
EVENT leukemia AS cases @