Re: [R] Dimensions on svychisq on svydesign

2010-05-10 Thread Thomas Lumley
I think your problem is that HL07 is not a data frame but a list. read.spss() produces a list rather than a data frame by default, and svydesign() requires a data frame. You can use as.data.frame() to turn HL07 into a data.frame. The weights also look a bit strange -- you have sampling prob

[R] Dimensions on svychisq on svydesign

2010-05-09 Thread Stefán Jónsson
Dear Forum I a running svychisq from the survey package and get errors with the number of dimensions, errors that I do not understand and do not know how to fix. I ask you kindly to help me out. The eror message follows with some information below. I hope there are enough information to help me