FCOUNT

Purpose

Defines a first-at-risk count variable for event-time tables.

Syntax

FCOUNT {AS sname} @

Arguments and Subcommands

AS sname

Changes the name of this summary variable from the default name FATRISK to sname.

Remarks

The summary variable created by this command is updated only for the first cell for which a record is at risk. In event-count tables, each input record is used to update at most one cell, thus, the summary variable created by FCOUNT is identical to the default %COUNT summary variable. In event-time tables, the FCOUNT variable is useful in counting the number of records ever-at-risk or in computing record-weighted means instead of the default person-year weighted means.

Example

To create a first-at-risk count variable called frisk and use this variable in the computation of person-weighted mean doses. Note that although these means are technically undefined in cells in which no people were initially at risk, the value in these cells will be zero. Also, if the XMEAN command were used, the means would be of little, if any, use.

FCOUNT AS frisk @

RMEAN dose WEIGHT frisk @