Re: [R] How do I get a weighted frequency table?

2011-08-30 Thread Luca Meyer
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 + ...) __

Re: [R] How do I get a weighted frequency table?

2011-08-29 Thread David L Carlson
-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

Re: [R] How do I get a weighted frequency table?

2011-08-29 Thread Luca Meyer
, 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

[R] How do I get a weighted frequency table?

2011-08-28 Thread Luca Meyer
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

Re: [R] How do I get a weighted frequency table?

2011-08-28 Thread Leandro Marino
*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)