[R] ANOVA procedure on the sufficient statistics

Liaw, Andy andy_liaw at merck.com
Wed Feb 18 14:40:34 CET 2004


You can apply the trick that Prof. Dalgaard recently posted in response to a
similar question (for one-way ANOVA).  For each cell, generate data as:

y <- cell.mean + cell.sd * scale(rnorm(cell.count))

Then generate the data frame to feed to aov.

HTH,
Andy

> From: Yun-Fang Juan
> 
> Hi, 
> I have a two-way anova with unequal cell numbers that I want 
> to analyze. 
> The problem is I don't have individual observations of the data.
> I only have the sufficient statistics (mean, variance, # of 
> observations) for each cell. 
> Is there any existing function in S-plus that would allow me 
> to do aov() with the sufficient statistics?
>  
> The table is like 
> 
>      G1 G2 G3 G5 G6
>  T1 
>  T2
>  T3
> 
> 
> For cell (Ti, Gj) i have mean,  variance and # observations 
> and the factors are unordered.
> 
> Thanks a lot for helping me on this in advance.
> 
> 
> Yun-Fang
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! 
> http://www.R-project.org/posting-guide.html
> 
> 


------------------------------------------------------------------------------
Notice:  This e-mail message, together with any attachments,...{{dropped}}




More information about the R-help mailing list