Learn R Programming

statpsych (version 1.7.0)

size.ci.tetra: Sample size for a tetrachoric correlation confidence interval

Description

Computes the sample size required to estimate a tetrachoric correlation with desired confidence interval precision. Set the tetrachoric planning value to the smallest value within a plausible range for a conservatively large sample size.

Usage

size.ci.tetra(alpha, p1, p2, cor, w)

Value

Returns the required sample size

Arguments

alpha

alpha level for 1 - alpha confidence

p1

planning value for row 1 marginal proportion

p2

planning value for column 1 marginal proportion

cor

tetrachoric planning value

w

desired confidence interval width

References

Bonett2005statpsych

Examples

Run this code
size.ci.tetra(.05, .4, .3, .5, .3)

# Should return:
#  Sample size
#          296


Run the code above in your browser using DataLab