Re: [R] Comparison of means in survey package

2011-08-18 Thread Thomas Lumley
On Fri, Aug 19, 2011 at 7:25 AM, Simon Kiss wrote: > Dear list colleagues, > I'm trying to come up with a test question for undergraduates to illustrate > comparison of means from a complex survey design. The data for the example > looks roughly like this: > > mytest<-data.frame(harper=rnorm(500

[R] Comparison of means in survey package

2011-08-18 Thread Simon Kiss
Dear list colleagues, I'm trying to come up with a test question for undergraduates to illustrate comparison of means from a complex survey design. The data for the example looks roughly like this: mytest<-data.frame(harper=rnorm(500, mean=60, sd=1), party=sample(c("BQ", "NDP", "Conservative",