Re: [R] Two Way ANOVA

From: Daniel Malter <daniel_at_umd.edu>
Date: Wed, 19 Mar 2008 18:36:40 -0400


Hi,

your post is hardly readable because it is so spread out over several pages. Can you repost it?

Besides that I do not understand your question fully. The y is your dependent variable and as it looks the A*B would be Sulfur*Nitrogen if these are your variable names.

You can also take a look at the manuals that are available for free on cran. Most of them deal with ANOVA I would say.

Cheers,
Daniel



cuncta stricte discussurus

-----Ursprüngliche Nachricht-----
Von: r-help-bounces_at_r-project.org [mailto:r-help-bounces_at_r-project.org] Im Auftrag von David Mackovjak
Gesendet: Wednesday, March 19, 2008 6:02 PM An: r-help_at_r-project.org
Betreff: [R] Two Way ANOVA

First time using, the mailing list and I'm somewhat new to R, so excuse me if I do anything wrong.

I was wondering how I would set up a two way ANOVA for the following data:

      
      Nitrogen
  (0)
       
      Nitrogen
  (20)
       
       
         
       

(cell
means)
(cell
means) [Sulfur means] Sulfur (0) 4.48 5.76 4.52
(4.54)
5.64
(5.73)
[5.14] 4.63 5.78 Sulfur (3) 4.70 7.01 4.65
(4.64)
7.11
(7.05)
[5.84] 4.57 7.02 Sulfur (6) 5.21 5.88 5.23
(5.27)
5.82
(5.81)
[5.54] 5.38 5.73 Sulfur (9) 5.88 6.26 5.98
(5.81)
6.26
(6.30)
[6.11] 5.91 6.37 [Nitrogen means] [5.10] [6.22] Source ofVariation SSSulfur 3.15 Nitrogen 7.59 Sulfur x Nitrogen 3.84 Error 0.08Total 14.66

>From googling I know I want to get it to the form:

> fit <- aov(y ~ A*B, data=mydataframe)

But what would I set for A, B and y?  




Looking for last minute shopping deals?

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.

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 19 Mar 2008 - 22:44:31 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 19 Mar 2008 - 23:30:25 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