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 π^ and the intra class correlation ρ^ of data that is assumed to follow the beta-binomial distribution. The estimation of π^ and ρ^ 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 π and ρ
Examples
# Estimates for bb_dat1pi_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")