Advanced tables and statistics > Weighting > Weighting information in axes > Preweights, postweights, proportions (input) and weighting to a given total
 
Preweights, postweights, proportions (input) and weighting to a given total
Preweights and postweights, weighting using proportions, and weighting to a given total are all requested using keywords on the l statement.
Keywords
pre=var
Names a field or variable containing a preweight that is to be applied to the record before weighting defined in the elements to which the record belongs.
post=var
Names a field or variable containing a postweight that is to be applied to the record after the weighting defined in the elements to which the record belongs.
total=n
Defines the total value for all cells in the table. If the weights you have defined produce a weighted total that is greater than the value defined with total=, Quantum will reduce the weights proportionally so that the weighted total is the same as the total= value.
input
Indicates that the weights in the axis are to be read as proportions rather than as weights to be applied. When Quantum calculates weights it will calculate them such that the number of respondents in each element are in the given proportions.
See also
Weighting information in axes