Description Usage Arguments Value Examples
Function to calculate the intracluster correlation coefficient of an
indicator collected from random cluster survey (RCS). This is a wrapper of
the deff()
function in the Hmisc
package.
1 | get_icc(x, cluster)
|
x |
variable to calculate ICC from |
cluster |
variable identifying the clusters or groupings of the variable |
A vector with named elements n (total number of non-missing observations),
clusters
(number of clusters after deleting missing data),
rho
(intra-cluster correlation), and deff
(design effect).
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.