Re: [R] weighted ftable

From: Thomas Lumley <tlumley_at_u.washington.edu>
Date: Tue, 25 Nov 2008 13:00:57 -0800 (PST)

On Mon, 24 Nov 2008, Andrew Choens wrote:

> I need to do some fairly deep tables, and ftable() offers most of what I
> need, except for the weighting. With smaller samples, I've just used
> replicate to let me have a weighted data set, but with this data set,
> I'm afraid replicate is going to make my data set too big for R to
> handle comfortably.
>
> That being said, is there some way to weight my table (similar to
> wtd.table) but offer the nuanced control and depth of ftable?

xtabs() will take a weight as the left-hand side of the formula, and its output can then be processed by ftable().

         -thomas

Thomas Lumley			Assoc. Professor, Biostatistics
tlumley_at_u.washington.edu	University of Washington, Seattle

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Tue 25 Nov 2008 - 21:02:38 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 26 Nov 2008 - 19:30:28 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive