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

View source: R/statpsych3.R

size.ci.tetraR Documentation

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)

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

Value

Returns the required sample size

References

\insertRef

Bonett2005statpsych

Examples

size.ci.tetra(.05, .4, .3, .5, .3)

# Should return:
#  Sample size
#          296



statpsych documentation built on Sept. 11, 2024, 7:42 p.m.