[R] Simple frequencies using svy design

Milan Bouchet-Valat nalimilan at club.fr
Mon Feb 11 10:56:03 CET 2013

Le lundi 11 février 2013 à 10:37 +0100, Virgile Capo-Chichi a écrit :
> Hello,
> excuse me if this is trivial. I have some survey data with the following
> design
> MyDesign<-(id=ident, weights=~fwgt, fcp=~nval1+nval2, data=hh_data1)
> I would like to run simple frequency tables such as those provided by the
> freq() function of rgrs to check the impact of the sampling design on my
> Ns. Anyway I can do this? thanks, V
See ?svytable. For a two-way table, you can do
svytable(~ MyVariable + MyVariable2, MyDesign)


More information about the R-help mailing list