Re: [R] svy / weighted regression

2009-10-14 Thread Laust
al individual-level data. Thanks a lot, your input has been very helpful. Laust Post doc. Laust Mortensen, PhD Epidemiology Unit University of Southern Denmark 2009/10/13 Thomas Lumley : > > I think there is a much simpler explanation. > > The survey design object has eight obs

Re: [R] svy / weighted regression

2009-10-13 Thread Laust
mation of the dispersion parameter by the survey package that is causing trouble, not the data example eo ipso. Or perhaps I am just using survey in a wrong way. Best Laust Post doc. Laust Mortensen, PhD Epidemiology Unit University of Southern Denmark On Mon, Oct 12, 2009 at 3:32 PM, Davi

Re: [R] svy / weighted regression

2009-10-12 Thread Laust
Dear Peter, Thanks for the input. The zero rates in some strata occurs because sampling depended on case status: In Finland only 50% of the non-cases were sampled, while all others were sampled with 100% probability. Best Laust On Sat, Oct 10, 2009 at 11:02 AM, Peter Dalgaard wrote: > So

[R] svy / weighted regression

2009-10-09 Thread Laust
problem below. Thanks Laust # loading survey library(survey) # creating data listc <- c("Denmark","Finland","Norway","Sweden","Denmark","Finland","Norway","Sweden") listw <- c(1,2,1,1,1,1,1,1) listd <- c(