[R] svytable: How do i create a table informing a third variable?
ajdamico at gmail.com
Sat Sep 3 01:24:29 CEST 2016
svymean( ~ income_variable , NN )
svyby( ~ income_variable , ~ age + sex , NN , svymean )
svyquantile( ~ income_variable , NN )
svyby( ~ income_variable , ~ age + sex , NN , svyquantile , 0.5 )
On Fri, Sep 2, 2016 at 3:04 PM, Juan Ceccarelli Arias <jfca283 at gmail.com>
> 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
> 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.
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide http://www.R-project.org/
> and provide commented, minimal, self-contained, reproducible code.
[[alternative HTML version deleted]]
More information about the R-help