[R] Complex sample variances

Thomas Lumley tlumley at u.washington.edu
Mon Apr 12 23:30:34 CEST 2004

On Mon, 12 Apr 2004, Fred Rohde wrote:

> Hello,
>  Is there a way to get complex sample variances in the survey package on
> summary statistics other than means?  If not, can they be added to a
> future version?  It would be be great to have them on totals, quantiles,
> ratios, and tables (eg row percent, columns percent, etc).

svytotal() and svyratio() will do this for totals and ratios if you have a
new enough version. At the moment the easiest way to get row or column
percentages is to think of them them as ratios of means of binary
variables and use svyratio().

Quantiles are more difficult, since neither Taylor series nor jackknife
approaches work.


More information about the R-help mailing list