Computes the Kish design effect and corresponding intra-cluster correlation for a single cluster-sampled variable
variable to analyze
a variable whose unique values indicate cluster membership. Any type of variable is allowed.
a vector with named elements
n (total number of non-missing
clusters (number of clusters after deleting
rho(intra-cluster correlation), and
Department of Biostatistics
set.seed(1) blood.pressure <- rnorm(1000, 120, 15) clinic <- sample(letters, 1000, replace=TRUE) deff(blood.pressure, clinic)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.