ci.prop1.inv {statpsych}R Documentation

Confidence interval for a single proportion using inverse sampling

Description

Computes an exact confidence interval for a single population proportion when inverse sampling has been used. An approximate standard error is recovered from the confidence interval. With inverse sampling, the number of participants who have the attribute (f) is predetermined and sampling continues until f attains its prespecified value. With inverse sampling, the sample size (n) will not be known in advance.

Usage

ci.prop1.inv(alpha, f, n)

Arguments

alpha

alpha level for 1-alpha confidence

f

number of participants who have the attribute

n

sample size

Value

Returns a 1-row matrix. The columns are:

References

Zou GY (2010). “Confidence interval estimation under inverse sampling.” Computational Statistics and Data Analysis, 54(1), 55–64. ISSN 0167-9473, doi:10.1016/j.csda.2005.05.007.

Examples

ci.prop1.inv(.05, 5, 67)

# Should return:
#   Estimate         SE         LL        UL
# 0.07462687 0.03145284 0.02467471 0.1479676



[Package statpsych version 1.5.0 Index]