[R] help with svychisq

2015-09-10 Thread Emanuele Mazzola
Hello, I’m having a weird issue with the function “svychisq” in package “survey", which would be very helpful for me in this case. I’m tabulating age categories (a factor variable subdivided into 4 categories: [18,25), [25, 45), [45,65), [65, 85) ) with respect to ethnicity/race (another facto

Re: [R] help with svychisq

2015-09-10 Thread Anthony Damico
could you try this, and then not use factor(age) elsewhere? sv1 <- update( sv1 , age = factor( age ) ) if that doesn't work, is it possible for you to share a reproducible example? thanks On Thu, Sep 10, 2015 at 4:51 PM, Emanuele Mazzola wrote: > Hello, > > I’m having a weird issue with the f