pi_rho_est function

Estimation of the binomial proportion and the intra class correlation.

Estimation of the binomial proportion and the intra class correlation.

pi_rho_est() estimates the overall binomial proportion π^\hat{\pi} and the intra class correlation ρ^\hat{\rho} of data that is assumed to follow the beta-binomial distribution. The estimation of π^\hat{\pi} and ρ^\hat{\rho} is done following the approach of Lui et al. 2000.

pi_rho_est(dat)

Arguments

  • dat: a data.frame with two columns (successes and failures)

Returns

a vector containing estimates for π\pi and ρ\rho

Examples

# Estimates for bb_dat1 pi_rho_est(bb_dat1)

References

Lui, K.-J., Mayer, J.A. and Eckhardt, L: Confidence intervals for the risk ratio under cluster sampling based on the beta-binomial model. Statistics in Medicine.2000;19:2933-2942. tools:::Rd_expr_doi("10.1002/1097-0258(20001115)19:21<2933::AID-SIM591>3.0.CO;2-Q")

  • Maintainer: Max Menssen
  • License: GPL (>= 2)
  • Last published: 2024-03-04