ESS {WgtEff} | R Documentation |
Calculate ESS
Description
Calculates effective sample size (ESS)
Usage
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
ESS(testweights$weights_column)
[Package WgtEff version 0.1.2 Index]