Hello everyone, I am doing an analysis on some data for a project, and do not have much background in either R or statistics, but have been pointed in the direction of doing ANOVA and then multiple comparisons on the data to give me the information I need. I was wondering if some of you could help me out. What I want to do is to do ANOVA on a data set like the following: ID G1 G2 G3 NG1 NG2 NG3................. A 4 3 2 5 4 3 B 5 3 5 4 4 2 C 3 3 2 2 4 4 ........ There are many more rows and columns, but basically each G or NG equivalent has replicates and these are found in every A, B, or C. What I want to do is run ANOVA on this large data set, then be able to use a multiple comparison test on specific results from the ANOVA output. Any help will be greatly appreciated, Thanks! -- View this message in context: r.789695.n4.nabble.com/Help-with-ANOVA-tp2330138p2330138.html Sent from the R help mailing list archive at Nabble.com.
Hi Sneeketeeke, Did you happen to have a look at the example on ?aov and ?TukeyHSD Also, you might need to move your data from wide to long. For which you might wish to look at ?reshape (or better yet the ?melt ?cast commands from the reshape package) Tal ----------------Contact Details:------------------------------------------------------- Contact me: Tal.Galili@gmail.com | 972-52-7275845 Read me: talgalili.com (Hebrew) | biostatistics.co.il (Hebrew) | r-statistics.com (English) ---------------------------------------------------------------------------------------------- On Wed, Aug 18, 2010 at 8:03 PM, Sneeketeeke <Sneeketeeke@aol.com> wrote:> > Hello everyone, > I am doing an analysis on some data for a project, and do not have much > background in either R or statistics, but have been pointed in the > direction > of doing ANOVA and then multiple comparisons on the data to give me the > information I need. I was wondering if some of you could help me out. > What > I want to do is to do ANOVA on a data set like the following: > > ID G1 G2 G3 NG1 NG2 NG3................. > A 4 3 2 5 4 3 > B 5 3 5 4 4 2 > C 3 3 2 2 4 4 > ........ > > There are many more rows and columns, but basically each G or NG equivalent > has replicates and these are found in every A, B, or C. What I want to do > is run ANOVA on this large data set, then be able to use a multiple > comparison test on specific results from the ANOVA output. > > Any help will be greatly appreciated, Thanks! > -- > View this message in context: > r.789695.n4.nabble.com/Help-with-ANOVA-tp2330138p2330138.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help@r-project.org mailing list > stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >[[alternative HTML version deleted]]
----- Original Message ---- From: Tal Galili <tal.galili at gmail.com> To: Sneeketeeke <Sneeketeeke at aol.com> Cc: r-help at r-project.org Sent: Thu, August 19, 2010 10:23:04 AM Subject: Re: [R] Help with ANOVA - snip ->Also, you might need to move your data from wide to long. For which you >might wish to look at >?reshape >(or better yet the >?melt >?cast >commands from the reshape package)Hi Tal, Could you pls explain how to start ?melt/?cast on resharpe, the Quick-R package?. ?melt/?cast has no doc on R. TIA B.R. Stephen ----------------Contact Details:------------------------------------------------------- Contact me: Tal.Galili at gmail.com | 972-52-7275845 Read me: talgalili.com (Hebrew) | biostatistics.co.il (Hebrew) | r-statistics.com (English) ---------------------------------------------------------------------------------------------- On Wed, Aug 18, 2010 at 8:03 PM, Sneeketeeke <Sneeketeeke at aol.com> wrote:> > Hello everyone, > I am doing an analysis on some data for a project, and do not have much > background in either R or statistics, but have been pointed in the > direction > of doing ANOVA and then multiple comparisons on the data to give me the > information I need. I was wondering if some of you could help me out. > What > I want to do is to do ANOVA on a data set like the following: > > ID G1 G2 G3 NG1 NG2 NG3................. > A 4 3 2 5 4 3 > B 5 3 5 4 4 2 > C 3 3 2 2 4 4 > ........ > > There are many more rows and columns, but basically each G or NG equivalent > has replicates and these are found in every A, B, or C. What I want to do > is run ANOVA on this large data set, then be able to use a multiple > comparison test on specific results from the ANOVA output. > > Any help will be greatly appreciated, Thanks! > -- > View this message in context: > r.789695.n4.nabble.com/Help-with-ANOVA-tp2330138p2330138.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at r-project.org mailing list > stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > 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 stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.