Hello,

I have been using the Hmisc package's deff() command for some research with
clustered data. I noticed that the formula to calculate the design effect
seems a bit different. The formula for the DE is:

1 + rho*(B - 1)

In most resources I have seen the formula for B to simply be the average
number of observations in a cluster: n/k if n is the total sample size and k
is the number of clusters.

However, the deff() command calculates B as: sum(number of observations in
each cluster^2)/n. 

That is a bit hard to write without the Sigma operator. In English it is
"squaring the number of observations in each cluster, adding all those up,
and dividing that total by n."

Which formula is correct? Thank you!
-- 
View this message in context: 
http://www.nabble.com/Hmisc-package%3A-deff%28%29-command%27s-formula-for-the-design-effect-tp23415477p23415477.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to