R/statpsych3.R
size.ci.tetra.Rd
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.
size.ci.tetra(alpha, p1, p2, cor, w)
alpha level for 1 - alpha confidence
planning value for row 1 marginal proportion
planning value for column 1 marginal proportion
tetrachoric planning value
desired confidence interval width
Returns the required sample size
Bonett DG, Price RM (2005). “Inferential methods for the tetrachoric correlation coefficient.” Journal of Educational and Behavioral Statistics, 30(2), 213--225. ISSN 1076-9986, doi:10.3102/10769986030002213 .
size.ci.tetra(.05, .4, .3, .5, .3)
#> Sample size
#> 296
# Should return:
# Sample size
# 296