size.ci.yule: Sample size for a Yule's Q confidence interval

View source: R/statpsych3.R

size.ci.yuleR Documentation

Sample size for a Yule's Q confidence interval

Description

Computes the sample size required to estimate Yule's Q with desired confidence interval precision. Set the Yule's Q planning value to the smallest absolute value within a plausible range for a conservatively large sample size.

Usage

size.ci.yule(alpha, p1, p2, Q, 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

Q

planning value of Yule's Q

w

desired confidence interval width

Value

Returns the required sample size

Examples

size.ci.yule(.05, .3, .2, .5, .4)

# Should return:
#  Sample size
#          354



statpsych documentation built on April 4, 2025, 3:20 a.m.