design_effect: Calculate design effect from weights

View source: R/design_effect.R

design_effectR Documentation

Calculate design effect from weights

Description

This function calculates the design effect of the supplied weights. A design effect is an estimate of the variance inflation caused by the design of a study. If a vector of weights is provided without any outcome, this function implements the estimator in Kish (1992), which assumes no correlation between provided weights and an outcome of interest. If an outcome of interest is provided, this function implements the estimator in Spencer (2000), which accounts for correlation between outcomes and weights. For a broader discussion of design effects in weighted surveys, see Spencer (2000).

Usage

design_effect(weights, outcome = NULL)

Arguments

weights

The weights for which a design effect is desired

outcome

A vector outcome of interest.

Value

A numeric design effect for the weights


aaronrudkin/autumn documentation built on Feb. 5, 2024, 6:08 p.m.