MLE 1 - (1 - x/n)^(1/m), Clopper-Pearson, Wilson score or Wald interval,
and the Bilder-Tebbs empirical Bayes estimates.
Usage
GtPrev(
x,
m,
n,
ci = c("CP", "Wald", "score"),
alpha = 0.05,
b_range = c(1e-04, 1000)
)
Arguments
- x
Positive groups.
- m
Group size.
- n
Number of groups.
- ci
"CP", "Wald" or "score".
- alpha
Level.
- b_range
Search interval for b.
Value
list(estimate, ci, theta, b_hat, eb1, eb2).
References
Bilder, C. R. & Loughin, T. M. (2025). Analysis of Categorical
Data with R, 2nd ed. Eqs (6.30)-(6.31).
Examples
GtPrev(3, 7, 24)$ci
#> [1] 0.003838099 0.054324083