Hello all,
I am trying to understand how svymean is calulated with svydesign.
I have the code:
dstrat1<-svydesign(id=~PSU, strata=~STRATUM,weights=~Sample_Weight,
data=subset25k, nest=TRUE)
and I am using svymean to compute the mean.
My main question is how are the sampling probabilities created? The
documentation says that each observation is weighted with the inverse of
its sampling probability. Is that coming from the weights that were input
in the svydesign? Thank you in advance.
[[alternative HTML version deleted]]
______________________________________________
[email protected] 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.