deff

0th

Percentile

Design Effect and Intra-cluster Correlation

Computes the Kish design effect and corresponding intra-cluster correlation for a single cluster-sampled variable

Keywords
htest
Usage
deff(y, cluster)
Arguments
y

variable to analyze

cluster

a variable whose unique values indicate cluster membership. Any type of variable is allowed.

Value

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).

See Also

bootcov, robcov

Aliases
  • deff
Examples
# NOT RUN {
set.seed(1)
blood.pressure <- rnorm(1000, 120, 15)
clinic <- sample(letters, 1000, replace=TRUE)
deff(blood.pressure, clinic)
# }
Documentation reproduced from package Hmisc, version 4.0-3, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.