ESS {causalOT}R Documentation

Effective Sample Size

Description

Effective Sample Size

Usage

ESS(x)

## S4 method for signature 'numeric'
ESS(x)

## S4 method for signature 'causalWeights'
ESS(x)

Arguments

x

Either a vector of weights summing to 1 or an object of class causalWeights

Details

Calculates the effective sample size as described by Kish (1965). However, this calculation has some problems and the PSIS() function should be used instead.

Value

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.

Methods (by class)

See Also

PSIS()

Examples

x <- rep(1/100,100)
ESS(x)

[Package causalOT version 1.0.2 Index]