QScript WeightSetNumeric

From Q
Jump to navigation Jump to search

WeightSetNumeric

A weight set that calibrates a single numeric (Number or NumberMulti) row question to a mean. Note the discriminator and wire format are 'Numeric'. A numeric weight set is used alone: exactly one Number or NumberMulti row question, no column questions, and no mergings. A single Number question takes one target (the desired mean); a NumberMulti question takes one target per variable, in variable order — enumerate the variables via rowQuestions[0].variables. Every target leaves rowCategories empty (the target applies to the numeric variable directly). Only valid under the 'Linear', 'Raking' or 'Logit' algorithms; 'Q' (rim weighting) cannot calibrate to a mean.

columnMergings

Mergings applied to the column categories before targets are matched.

columnQuestions

The questions whose categories form the columns of the weighting crosstab.

rowMergings

Mergings applied to the row categories before targets are matched.

rowQuestions

The questions whose categories form the rows of the weighting crosstab.

targets

The numeric targets for this weight set.

type

Returns 'Numeric'.