Re: [R] svy / weighted regression

2009-10-14 Thread Laust
. 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 tlum...@u.washington.edu: I think there is a much simpler explanation. The survey design object has eight observations, two per

Re: [R] svy / weighted regression

2009-10-13 Thread Laust
, 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, David Winsemius dwinsem...@comcast.net wrote: I think you are missing the point. You have 4

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 p.dalga

[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(0,0,0,0,1000,1000,1000,2000) listt - c(75,50,90,190,5000,5000,5000,1) list.cwdt - c(listc