TLEVEL

Purpose

Determines the number of levels for time-dependent categorical variables.

Programs

PEANUTS

Syntax

TLEVEL vname { nlev | levlo: levhi} {vname ...}

Arguments and Subcommands

vname

The variables for which levels are to be defined.

nlev

Defines the levels for the variable corresponding to values 1 to nlev. If nlev is 0, the variable will not be treated as a categorical variable.

levlo: levhi

Explicit specification of the lower, levlo and upper levhi bounds for a variable.

Remarks

If the number of levels is not stated explicitly, the program will determine the range and origin (0 or 1).

Example

To define a categorical time since last exposure variable based upon whether the current time is greater than the time of last employment. The categories are 5 years or less, 10 years or less and greater than 10 years since last exposure.

TTRAN cess = (%time > tmlast) +

  (%time > tmlast + 5) =

  (%time > tmlast + 10 @

TLEVEL cess @