Re: [R] Understanding svymean

2014-06-05 Thread Thomas Lumley
On Fri, Jun 6, 2014 at 9:50 AM, Ryan de Vera wrote: > 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

[R] Understanding svymean

2014-06-05 Thread Ryan de Vera
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 create