Re: [R] svychisq??

2012-05-31 Thread Diana Marcela Martinez Ruiz
Hello forum, I want to do a test of independence with svychisq, but I get an error, then this my code: am18 - read.spss(C:/Users/diana/Dropbox/Semestre 10/Tesis 10/Tesis Diana/AMcomuna18-29MAR2012.sav, use.value.labels=TRUE, max.value.labels=Inf, to.data.frame=TRUE)

Re: [R] svychisq??

2012-05-31 Thread Thomas Lumley
On Fri, Jun 1, 2012 at 6:07 AM, Diana Marcela Martinez Ruiz dianamm...@hotmail.com wrote: Hello forum, I want to do a test of independence with svychisq, but I get an error, then this my code: am18 -   read.spss(C:/Users/diana/Dropbox/Semestre 10/Tesis 10/Tesis

[R] svychisq using two frames

2012-05-24 Thread lasciel
Hello, I’m hoping you have a few minutes to help out someone very new to R. I’ve done some searching, but cannot find this particular issue. I have survey data from two different time periods (years). Both years are stratified samples and have the same variables (and variable names), but are

Re: [R] svychisq using two frames

2012-05-24 Thread Thomas Lumley
On Fri, May 25, 2012 at 4:10 AM, lasciel corte...@msu.edu wrote: So, I could use ‘rbind’ to stack the two years of data together with their appropriate weights into a single data frame. svychisq(~MyVar+MyVar, BothYears, statistic=”Chisq”) But now I have a problem that the variable name is