pi_rho_est | R Documentation |
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)
dat |
a |
a vector containing estimates for \pi
and \rho
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. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1002/1097-0258(20001115)19:21<2933::AID-SIM591>3.0.CO;2-Q")}
# Estimates for bb_dat1
pi_rho_est(bb_dat1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.