[R] descriptive stats by cells in factorial design

David Winsemius dwinsemius at comcast.net
Sat Aug 3 19:16:23 CEST 2013


'tapply' lets one apply a function to tabulated items. There are 'describe' functions in a variety of packages.

-- 
David 

Sent from my iPhone

On Aug 3, 2013, at 2:27 AM, Søren Højsgaard <sorenh at math.aau.dk> wrote:

> The summaryBy function in the doBy  package may help you.
> Regards Søren
> 
> 
> Sendt fra Samsung mobil
> 
> 
> 
> -------- Oprindelig meddelelse --------
> Fra: Mike Miller <mbmiller+l at gmail.com>
> Dato:
> Til: R-Help List <r-help at stat.math.ethz.ch>
> Emne: [R] descriptive stats by cells in factorial design
> 
> 
> I'm looking for recommendations for a good way to do this.  There must be
> a good function in some package...
> 
> I have a 5-way factorial design, two levels per factor, so 32 cells, and I
> mostly just want the means and standard deviations for the contents of
> every cell.  I can write a for loop, but maybe there is a nice way to show
> the model and get the results I want without having to do that.
> 
> Similarly, it would be nice to also have the range and maybe some
> percentiles, if there is a function that would just pump them out.
> 
> Finally, if something would draw a series of box plots for the cells of
> the factorial design, that could be nice to have.
> 
> It seems like this sort of thing must already have been worked out.
> 
> Thanks in advance.
> 
> Mike
> 
> --
> Michael B. Miller, Ph.D.
> Minnesota Center for Twin and Family Research
> Department of Psychology
> University of Minnesota
> 
> ______________________________________________
> 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.
> 
>    [[alternative HTML version deleted]]
> 
> ______________________________________________
> 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.



More information about the R-help mailing list