From: Mark Hempelmann <neo27_at_t-online.de>

Date: Thu 16 Jun 2005 - 22:56:35 EST

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Jun 16 23:02:59 2005

Date: Thu 16 Jun 2005 - 22:56:35 EST

dclus1<-svydesign(id=~cluster, data=clus1) svymean(~y, dclus1)

mean SE

y 44.778 0.294, the unweighted mean, assuming equal probability in the
clusters. ok.

2. Let M=23, m=3 and N=72, n=9, then I am unable to use svydesign correctly:

dclus2<-svydesign(id=~cluster, data=clus1, fpc=~N) svymean(~y, dclus2)

dclus3<-svydesign(id=~cluster, weights=~weight, data=clus1, fpc=~N) svymean(~y, dclus3)

mean SE

y 44.778 0.2878, still exactly the same numbers, although I provided the
weights. What am I doing wrong?

I am sorry to bother you. Studying Statistics isn't done in a day, that's for sure. Thank you so much for your understanding and support.

mark

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Jun 16 23:02:59 2005

*
This archive was generated by hypermail 2.1.8
: Fri 03 Mar 2006 - 03:32:43 EST
*