ESS | R Documentation |
Effective Sample Size
ESS(x)
## S4 method for signature 'numeric'
ESS(x)
## S4 method for signature 'causalWeights'
ESS(x)
x |
Either a vector of weights summing to 1 or an object of class causalWeights |
Calculates the effective sample size as described by Kish (1965).
However, this calculation has some problems and the PSIS()
function should be used instead.
Either a number denoting the effective sample size or if x
is of class
causalWeights, then returns a list of both values in the treatment
and control groups.
ESS(numeric)
: default ESS method for numeric vectors
ESS(causalWeights)
: ESS method for objects of class causalWeights
PSIS()
x <- rep(1/100,100)
ESS(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.