[R] Generating data from an ANOVA model

Murray Jorgensen maj at waikato.ac.nz
Mon Aug 20 23:49:57 CEST 2001

In my teaching I like to try to get across the meaning of the linear models
assumed in ANOVA by generating artificial data from these models.

When using Minitab I would set up columns of indicator variables for the
factors and any interactions included and add random normal error to a
column of means formed as a linear combination of the indicator columns.

I now want to do something similar in R. I am not looking for the shortest
possible code to do this, but a solution that will make it as obvious as
possible to the students exactly what is going on.

Dr Murray Jorgensen      http://www.stats.waikato.ac.nz/Staff/maj.html 
Department of Statistics, University of Waikato, Hamilton, New Zealand 
Email: maj at waikato.ac.nz                            Fax +64-7 838 4155
Phone +64-7 838 4773 home phone +64-7 856 6705  Mobile +64-21 139 5862

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list