Advanced tables and statistics > Weighting > Defining weights in a weighting matrix > Defining weighting matrices in hierarchical data
 
Defining weighting matrices in hierarchical data
Weights are calculated and applied each time a record is read in or a process statement is executed. However, when trailer cards are read in one at a time, the weight is calculated as if each trailer card were a new record, which can lead to incorrect weights being used. You therefore need to do one of the following:
use the anlev= option to specify the level each weighting matrix applies to.
use the c= option to limit the cards that contribute to the weighting calculations and the number of times each weight is applied.
See
anlev=
c=firstread
See also
Defining weights in a weighting matrix