effectiveSampleSize: Compute the effective sample size of a match.

Description Usage Arguments Value See Also

View source: R/stratumStructure.R

Description

The effective sample size is the sum of the harmonic means of the number units in treatment and control for each matched group. For k matched pairs, the effective sample size is k. As matched groups become more unbalanced, the effective sample size decreases.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
effectiveSampleSize(x, z = NULL)

## S3 method for class 'factor'
effectiveSampleSize(x, z = NULL)

## Default S3 method:
effectiveSampleSize(x, z = NULL)

## S3 method for class 'table'
effectiveSampleSize(x, z = NULL)

Arguments

x

An optmatch object, the result of fullmatch or pairmatch.

z

A treatment indicator, a vector the same length as match. This is only required if the match object does not contain the contrast.group' attribute.

Value

The equivalent number of pairs in this match.

See Also

summary.optmatch, stratumStructure


markmfredrickson/optmatch documentation built on April 3, 2018, 9:33 p.m.