pi_rho_est {predint}R Documentation

Estimation of the binomial proportion and the intra class correlation.

Description

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.

Usage

pi_rho_est(dat)

Arguments

dat

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

Value

a vector containing estimates for \pi and \rho

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. doi:10.1002/1097-0258(20001115)19:21<2933::AID-SIM591>3.0.CO;2-Q

Examples

# Estimates for bb_dat1
pi_rho_est(bb_dat1)


[Package predint version 2.2.1 Index]