Re: [R] Learning ANOVA

2010-08-16 Thread Martin Maechler
> Liaw, Andy > on Mon, 16 Aug 2010 08:22:33 -0400 writes: > From: Stephen Liu >> >> Hi JesperHybel, >> >> Thanks for your advice. >> >> >If you're trying to follow the youtube video you have a >> typing mistake here: >> >> >InsectSprays.aov

Re: [R] Learning ANOVA

2010-08-16 Thread Stephen Liu
- Original Message From: Robert Baer To: Stephen Liu ; r-help@r-project.org Sent: Tue, August 17, 2010 12:35:07 AM Subject: Re: [R] Learning ANOVA >>> modelfn(count ~ spray, data=test01) >> Error: could not find function "modelfn" >> >> What will be

Re: [R] Learning ANOVA

2010-08-16 Thread Robert Baer
ectSprays.aov <- aov(InsectSprays$count ~ InsectSprays$spray) - Original Message - From: "Stephen Liu" To: Sent: Monday, August 16, 2010 11:01 AM Subject: Re: [R] Learning ANOVA - Original Message From: Erik Iverson To: Stephen Liu Cc: r-help@r-project.org Sen

Re: [R] Learning ANOVA

2010-08-16 Thread Stephen Liu
- Original Message From: Erik Iverson To: Stephen Liu Cc: r-help@r-project.org Sent: Mon, August 16, 2010 11:41:34 PM Subject: Re: [R] Learning ANOVA >> modelfn(count ~ spray, data=test01) > Error: could not find function "modelfn" > > What will be +va

Re: [R] Learning ANOVA

2010-08-16 Thread Erik Iverson
Stephen Liu wrote: - Original Message From: "Liaw, Andy" To: Stephen Liu ; r-help@r-project.org Sent: Mon, August 16, 2010 8:22:33 PM Subject: RE: [R] Learning ANOVA - snip - Well-written model fitting functions should be called like this: modelfn(var1 ~ var2 + var

Re: [R] Learning ANOVA

2010-08-16 Thread Stephen Liu
- Original Message From: "Liaw, Andy" To: Stephen Liu ; r-help@r-project.org Sent: Mon, August 16, 2010 8:22:33 PM Subject: RE: [R] Learning ANOVA - snip - > Well-written model fitting functions should be called like this: > modelfn(var1 ~ var2 + var3, data=df

Re: [R] Learning ANOVA

2010-08-16 Thread Liaw, Andy
usly? > Instead of reading > them, individually. I read ?plot but unable to resolve. > > Also how to save InsectSprays.aov? I think I can only save it as > InsectSprays.csv. I can't find "write.aov" command. > > > Thanks > > > TIA > > B.

Re: [R] Learning ANOVA

2010-08-15 Thread David Winsemius
On Aug 15, 2010, at 10:58 AM, Stephen Liu wrote: - Original Message From: David Winsemius To: JesperHybel Cc: r-help@r-project.org Sent: Sat, August 14, 2010 5:44:00 PM Subject: Re: [R] Learning ANOVA Hi David, - snip - JH > Also how to save InsectSprays.aov? I think I

Re: [R] Learning ANOVA

2010-08-15 Thread Stephen Liu
- Original Message From: David Winsemius To: JesperHybel Cc: r-help@r-project.org Sent: Sat, August 14, 2010 5:44:00 PM Subject: Re: [R] Learning ANOVA Hi David, - snip - >> JH > Also how to save InsectSprays.aov? I think I can only save it as >> InsectSprays.csv

Re: [R] Learning ANOVA

2010-08-14 Thread David Winsemius
On Aug 14, 2010, at 3:38 AM, JesperHybel wrote: JH .how to plot 4 graphs simultaneously? Depends on what graphs were talking about: A Side-by-side boxplot containing fx 4 boxplots can be generated by a single plot() command. However often you use a primary command that activivates the

Re: [R] Learning ANOVA

2010-08-14 Thread JesperHybel
how to plot 4 graphs simultaneously? Depends on what graphs were talking about: A Side-by-side boxplot containing fx 4 boxplots can be generated by a single plot() command. However often you use a primary command that activivates the plot window and plots one graph, then afterwards you use s

Re: [R] Learning ANOVA

2010-08-13 Thread Stephen Liu
orial with demo. Otherwise it won't be easy for a beginning remembering all commands and steps on manual. B.R. Stephen L - Original Message From: Christopher W Ryan To: R-help@r-project.org Sent: Sat, August 14, 2010 1:51:34 AM Subject: Re: [R] Learning ANOVA Read documenta

Re: [R] Learning ANOVA

2010-08-13 Thread Stephen Liu
age From: JesperHybel To: r-help@r-project.org Sent: Sat, August 14, 2010 2:09:48 AM Subject: Re: [R] Learning ANOVA If you're trying to follow the youtube video you have a typing mistake here: InsectSprays.aov <-(test01$count ~ test01$spray) I think this should be: InsectSprays.a

Re: [R] Learning ANOVA

2010-08-13 Thread Stephen Liu
- Original Message From: "Liaw, Andy" To: Stephen Liu ; r-help@r-project.org Sent: Sat, August 14, 2010 12:48:33 AM Subject: RE: [R] Learning ANOVA >Note the names of the variables here. They don't match what you tried >to use in your boxplot() call below. Where

Re: [R] Learning ANOVA

2010-08-13 Thread JesperHybel
If you're trying to follow the youtube video you have a typing mistake here: InsectSprays.aov <-(test01$count ~ test01$spray) I think this should be: InsectSprays.aov <-aov(test01$count ~ test01$spray) youre missing the functioncall "aov" on the right hand side of the assignment operator '<-'

Re: [R] Learning ANOVA

2010-08-13 Thread Christopher W Ryan
plied to an object of class > "formula" > > I'm still stuck here. > > > B.R. > Stephen L > > > > > - Original Message > From: Erik Iverson > To: Stephen Liu > Cc: r-help@r-project.org > Sent: Sat, August 14, 20

Re: [R] Learning ANOVA

2010-08-13 Thread Stephen Liu
- Original Message From: Erik Iverson To: Stephen Liu Cc: r-help@r-project.org Sent: Sat, August 14, 2010 12:15:31 AM Subject: Re: [R] Learning ANOVA > Performed following steps on R:- > > ### to access to the object >> data(InsectSprays) > > ### create a .csv

Re: [R] Learning ANOVA

2010-08-13 Thread Liaw, Andy
From: Stephen Liu > > Hi folks, > > R on Ubuntu 10.04 64 bit. > > Performed following steps on R:- > > ### to access to the object > > data(InsectSprays) > > ### create a .csv file > > write.csv(InsectSprays, "InsectSpraysCopy.csv") > > > On another terminal > $ sudo updatedb > $ locate Inse

Re: [R] Learning ANOVA

2010-08-13 Thread Erik Iverson
Performed following steps on R:- ### to access to the object data(InsectSprays) ### create a .csv file write.csv(InsectSprays, "InsectSpraysCopy.csv") On another terminal $ sudo updatedb $ locate InsectSpraysCopy.csv /home/userA/InsectSpraysCopy.csv ### Read in some data test01 <- re

Re: [R] Learning ANOVA

2010-08-12 Thread Stephen Liu
rocedure TukeyHSD(dotest01.aov) Any advice? TIA B.R. Stephen L - Original Message From: David Winsemius To: Stephen Liu Cc: r-help@r-project.org Sent: Fri, August 13, 2010 12:19:35 PM Subject: Re: [R] Learning ANOVA On Aug 12, 2010, at 11:34 PM, Stephen Liu wrote: &g

Re: [R] Learning ANOVA

2010-08-12 Thread David Winsemius
On Aug 12, 2010, at 11:34 PM, Stephen Liu wrote: Hi folks, File to be used is on; data(InsectSprays) I can't figure out where to insert it on following command; test01 <- read.csv(fil.choose(), header=TRUE) Don't think that would work, even if you did spell file.choose() correctly. ?d