Thank you, that's works just fine.
Luca
Il giorno 29/ago/2011, alle ore 23.48, H. T. Reynolds ha scritto:
Hi,
I use xtabs with the weight variable on the left hand side of the formula as
in
xtabs(weight ~ opinion + gender + ...)
__
-help@r-project.org
Subject: Re: [R] How do I get a weighted frequency table?
*Luca,
*
you may use survey package. You have to declare the design with design
function and than you can you svytotal, svyby, svymean functions to do your
tabulations.
Regards,
Leandro
Atenciosamente,
Leandro Marino
, 2011 12:15 PM
To: Luca Meyer
Cc: r-help@r-project.org
Subject: Re: [R] How do I get a weighted frequency table?
*Luca,
*
you may use survey package. You have to declare the design with design
function and than you can you svytotal, svyby, svymean functions to do your
tabulations
Hello,
I have to run a set of crosstabulations to which I need to apply some weights.
I am currently doing an unweighted version of such crosstabs using table(x,y).
I am used with SPSS to create a weighting variable and to use WEIGHT BY VAR
before running the CTABLES, is there a similar
*Luca,
*
you may use survey package. You have to declare the design with design
function and than you can you svytotal, svyby, svymean functions to do your
tabulations.
Regards,
Leandro
Atenciosamente,
Leandro Marino
http://www.leandromarino.com.br (Fotógrafo)
5 matches
Mail list logo