Re: [R] weighted ftable

From: Andrew Choens <andy.choens_at_gmail.com>
Date: Wed, 26 Nov 2008 13:49:09 -0500

I didn't know that. That is exactly what I need.

On Tue, 2008-11-25 at 13:00 -0800, Thomas Lumley wrote:
> 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

-- 
Insert something humorous here.  :-)

______________________________________________
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 Wed 26 Nov 2008 - 18:51:26 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