Advanced tables and statistics > Weighting > Using weights
 
Using weights
Quick reference
To use weights, type:
wm=number
as an option on the a, sectbeg, flt, tab or n (or equivalent) statement, where number is the number of the weighting matrix or axis.
To switch off weighting applied at a higher level, type:
wm=0
More information
To use weights, you have to tell Quantum which weighting matrix or axis to use when. Weighting is invoked by the option:
wm=n
on the a, sectbeg flt, tab or n line, where n is the number of the weighting matrix or axis to be used.
For example, to weight a table using weight matrix/axis 3, write:
tab ax01 bk01;wm=3
wm= on the a statement is operative for the whole run, whereas on a tab line it refers only to tables created by that statement (remember, and statements take their options from the previous tab statement). When used on an n statement or with elements on a col, val, fld or bit statement, wm= weights that element only, according to the given matrix. If a table contains row elements weighted using one matrix and column elements weighted using a second matrix, each cell is weighted using the matrix named on the column element for that particular cell. Weighting defined for the row axis is ignored.
To turn weighting off for a particular cell, for example to produce a table containing a weighted and an unweighted base, place the option:
wm=0
on the element. To produce an unweighted table in an otherwise weighted run, add this option to the tab statement for that table.
If a cell is created by combining a weighted row element with an unweighted column element, the cell is unweighted. If the cell is created by combining an unweighted row element with a weighted column element, the cell is weighted.
Information about the weights calculated and applied is written to the weighting report file. Some information is also displayed on the screen. For more information on the name and content of this file, see Weighting report file.
See also
Weighting