The QTRSELECT Procedure

WEIGHT Statement

  • WEIGHT variable;

The variable in the WEIGHT statement is used as a weight to perform a weighted analysis of the data. Observations that have nonpositive or missing weights are not included in the analysis. The values of the WEIGHT variable can be nonintegral and are not truncated. When you omit the WEIGHT statement, all observations that are used in the analysis are assigned a weight of 1.

The QTRSELECT procedure uses each valid weight as the scale factor of its relevant observation. Let bold upper X denote the design matrix before weights are used, and let bold upper W denote the diagonal matrix whose diagonal elements are the weights. Then PROC QTRSELECT uses the weighted design matrix bold upper W bold upper X for its computation. For example, the weighted version of bold upper X prime bold upper X is bold upper X prime bold upper W bold upper W bold upper X but not bold upper X prime bold upper W bold upper X.

Last updated: September 13, 2022