ESS: Calculate ESS

Description Usage Arguments Value References Examples

Description

Calculates effective sample size (ESS)

Usage

1
ESS(x)

Arguments

x

= weights vector (name of weights column)

Value

Effective sample size (ESS)

References

Effective sample size (ESS) => sum(x)^2 / sum(x^2)

Examples

1
ESS(testweights$weights_column)

WgtEff documentation built on June 10, 2019, 1:02 a.m.