[R] svytable: How do i create a table informing a third variable?

Juan Ceccarelli Arias
Fri, 02 Sep 2016 19:04:22 -0000

Hello
Im analyzing a survey and i need to obtain some statistics per groups.
Im able to create a table with sex and age. However, if i want to know how
much income earns the population by sex and age, i can't.
Im loading the dataset as describe the line below
NN <- svydesign(ids = ~1, data = encuesta, weights = fact)
Some simple table i can create
table(svytable(~age+sex,design=NN))
But im not able to handle the same tabulate referencing a income variable,
in this case, wage.
Can you help me?
Thanks for your replies and time.