QScript WeightStatistics

From Q
Jump to navigation Jump to search

WeightStatistics

Weight quality metrics for a weight variable — the same five numbers shown in the weighting dialog's diagnostics panel. Returned by getWeightStatistics and computed on demand.

effectiveSampleSize

The effective sample size after weighting.

effectiveSampleSizePercent

The effective sample size as a percentage of the unweighted sample size.

maximum

The largest weight assigned to any respondent.

minimum

The smallest weight assigned to any respondent.

ratio

maximum / minimum — how widely the weights spread.

type

Returns 'WeightStatistics'.