On Thu, May 12, 2011 at 2:43 AM, jour4life <jour4l...@gmail.com> wrote: > I have a follow up question. When using svyglm, it does not matter that I am > not using survey design and only weights? > In other words, > > fit<-svyglm(y~x1+x2+...xk,data=dataset,weights=weightvariable) > > Or am I going to have to construct a survey design variable, using only the > weight variable?
You will have to construct a survey design. It's not difficult. my.first.survey.design <- svydesign(id=~1, weights=~weightvariable, data=dataset) fit<-svyglm(y~x1+x2+...xk, design=my.first.survey.design) -thomas -- Thomas Lumley Professor of Biostatistics University of Auckland ______________________________________________ R-help@r-project.org 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.