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:
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:
The following table displays results from the example procedure above.
|Above high school||Female||60|
|Above high school||Male||55|
|Below high school||Female||40|
|Below high school||Male||45|
|Note: Output for surveys with bootstrap weights will have additional information on precision measures i.e. quality indicators, standard errors, confidence intervals, etc.|