search for: bothyear

Displaying 1 result from an estimated 1 matches for "bothyear".

Did you mean: bothyears
2012 May 24
1
svychisq using two frames
...vychisq? function if I declare a single data frame in the design statement, rather than referencing a frame for Year1 and a different frame for Year2. 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 the same across years, so how do I differentiate the different time periods in the syntax for the formula? Do I need to also create two new variables per: MyVar.1 [year = 1] <- MyVar MyVar.2 [year = 2] <- MyVar svychisq...