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.



That will generate only approximately the same means and MSE, however.

Larsen's procedure generates a weighted data set that gives the same ANOVA table
as the raw data, but requires that the weight= argument be used in aov().
(weights are not supported in all related functions)


-Michael

--
Michael Friendly Email: [EMAIL PROTECTED] Professor, Psychology Dept.
York University Voice: 416 736-5115 x66249 Fax: 416 736-5814
4700 Keele Street http://www.math.yorku.ca/SCS/friendly.html
Toronto, ONT M3J 1P3 CANADA


______________________________________________
[EMAIL PROTECTED] 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

Reply via email to