Skip to content
Prev 296204 / 398506 Next

svychisq??

On Fri, Jun 1, 2012 at 6:07 AM, Diana Marcela Martinez Ruiz
<dianammr06 at hotmail.com> wrote:
Variables that you refer to with a formula have to be in the design object.

You don't need to turn the variables into matrices, so you could just do

tbl1<-svytable(~M1_19_OCUPACIONPRINCIPALACTUAL+M3_11_AUTOPERCEPCIONSALUDGENERAL,Muestra.comp)

or if you want shorter names, create renamed variables in the design object:

Muestra.comp <- update(Muestra.comp, ocupacion =
M1_19_OCUPACIONPRINCIPALACTUAL, APES=
M3_11_AUTOPERCEPCIONSALUDGENERAL)

     -thomas