1. The RTRA proportion procedure calculates the population distribution of a discrete variable. For example, this procedure can be used to calculate the proportion of the population living with asthma. To generate a proportion, call the following RTRA procedure:
2. %RTRAProportion 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 four variables for the dimensions of the proportion procedure. These variables need to be delimited by spaces or asterisks. Each variable must contain more than one but no more than 500 unique values. This parameter may be left empty if you wish to calculate a proportion for the entire population.
ByVar = identify exactly one variable for the proportion procedure. This variable must contain more than one but no more than 500 unique values. Your population distribution will be calculated on this discrete variable.
UserWeight= refer to the RTRA parameters document to identify a survey weight. The weight variable identified will be merged to the InputDataset using the ID variable.
3. Example: This procedure can be used to calculate the proportion of population living with asthma. Suppose you ran the following RTRA procedure to calculate a proportion of a variable called “Asthma” to generate a table named “Table1”. You would like to calculate this proportion for each gender using variable called “Sex”.
The following table displays results from the example procedure above.