WEIGHT Subcommand (CTABLES command)
/WEIGHT=varname
If you have a variable that represents adjustment weights rather than frequency weights, you can use that variable as an effective base weight variable. The concept of effective base or effective sample size weighting is based in methods for the analysis of data from complex samples. An effective base weight allows for approximate handling of statistical inference in analyses involving ad hoc adjustments to data from simple random sampling designs via the use of adjustment weights.
- The effective base weight affects weighted summary statistics values and column means and column proportions significance tests.
- If weighting is turned on for the dataset (
WEIGHTcommand), the dataset weight variable is ignored and results are weighted by the effective base weight variable. - The effective base weight variable must be numeric.
- Cases with negative weight values, a weight value of 0, or missing weight values are excluded from all results.
- The
WEIGHTsubcommand is a global subcommand. The subcommand applies to all tables specified on theCTABLEScommand. - The
WEIGHTsubcommand must appear before the firstTABLEsubcommand.
Weights and Rounding
Data can be weighted with the WEIGHT command or with the WEIGHT
subcommand in the CTABLES command.
- If weighting with the
WEIGHTcommand is used, non-integer weights are rounded at the cell or category level for significance tests, confidence intervals, and standard errors. - If weighting with the
WEIGHTsubcommand of theCTABLEScommand is used, non-integer weights are not rounded. - If both are specified,
CTABLESuses the variable specified on theWEIGHTsubcommand, and non-integer weights are not rounded.