1. The RTRA Share procedure shows the relationship between two continuous variables. For example, this procedure can be used to calculate the Share of income to spending by sex. To generate a Share, call the following RTRA procedure:
2. %RTRAShare parameter definition:
InputDataset = identify the input data set from the WORK area to be used by the procedure.
OutputName= identify the output dataset name 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 Share procedure. These variable needs to be delimited by a space or asterisk. 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 Shares for the entire population.
NumeratorVar = identify exactly one variable as the numerator. This variable must be of type numeric.
DenominatorVar = identify exactly one variable as the denominator. This variable must be of type numeric.
ByVar = identify exactly one variable for the Share procedure. This 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: This procedure can be used to calculate the Share of total income over total number of hours worked, giving an hourly wage rate. You would like this Share calculated for each “Province”.
The following table displays results from the example procedure above.
|Note: Output for surveys with bootstrap weights will have additional information on precision measures i.e. quality indicators, standard errors, confidence intervals, etc.|
The results in this table can be read as follows:
- The total weighted population
- associated with the calculation of this table is equal to 27,268,000.
- Ontario’s share of total income in Canada is equal to 1.83 %. The weighted population associated with this calculation is equal to 428,000.
- Quebec’s share of total income in Canada is equal to 0.41%. The weighted population associated with this calculation is equal to 115,000
- ... etc.