Frequency for RTRA

Download the DOC version (DOC, 34 KB)

1. The RTRA frequency procedure provides counts of a discrete variable. For example, this procedure can be used to calculate the number of people in the population by different education levels and gender. To generate frequency tabulations, call the following RTRA procedure:

%RTRAFreq (
InputDataset=,
OutputName=,
ClassVarList=,
UserWeight=);

2.%RTRAFreq parameter definition:

InputDataset = identify the input data set from the WORK area to be used by the procedure.

OutputName = identify the name of the output files you want returned (maximum of 20 characters and the first character must not be an underscore).

ClassVarList = identify a maximum of five variables to be included on the frequency table. These variables need to be delimited by spaces or asterisks. Each variable must contain more than one but no more than 500 unique values.

UserWeight = refer to the RTRA parameters document to identify a survey weight. The weight variable identified will be merged onto the input data set using the ID variable.

3. Example: Suppose you ran the following RTRA procedure to generate a frequency table named “Table1” with variables called “Education” and “Sex”.

Your RTRA procedure call will look like this:

%RTRAFreq(
InputDataset=work.LFS,
OutputName=Table1,
ClassVarList=Education Sex,
UserWeight=Finalwt);

The following table displays results from the example procedure above.

Table 1
Results from example procedure
Education Sex Count
  Female 100
  Male 100
Above high school Female 60
Above high school Male 55
Below high school Female 40
Below high school Male 45
 
 
Date modified: