Does anyone know how to calculate the mean in a clustered dataset? I've obtained data in children from 145 households; each household has between 1 and 6 children. Among other I've collected data on weight and height, and is thus able to calculate a so-called z-score for weight-for-height. I wish to calculate the mean of this z-score, but I don't know how to calculate it, if I have to account for the clustering (children are clustered within the households). I use R for statistical analysis.
Hope you can help!