[R] Learning ANOVA

Robert Baer rbaer at atsu.edu
Mon Aug 16 18:35:07 CEST 2010


>>> modelfn(count ~ spray, data=test01)
>> Error: could not find function "modelfn"
>>
>> What will be +var3 ?
I think the general advice applied to your specific situation was meant to 
suggest using the construct:
InsectSprays.aov <- aov(count ~ spray, data=InsectSprays)

rather than:
InsectSprays.aov <- aov(InsectSprays$count ~ InsectSprays$spray)


----- Original Message ----- 
From: "Stephen Liu" <satimis at yahoo.com>
To: <r-help at r-project.org>
Sent: Monday, August 16, 2010 11:01 AM
Subject: Re: [R] Learning ANOVA


> ----- Original Message ----
>
> From: Erik Iverson <eriki at ccbr.umn.edu>
> To: Stephen Liu <satimis at yahoo.com>
> Cc: r-help at 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 +var3 ?
>>
>
>> This is just a generic example.  modelfn can be any modeling
>> function, e.g., lm, glm, gam, etc.
>
> Hi Erik,
>
> Is it aov a modeling function?
>
> If YES whether the command is;
>
>> InsectSprays.aov <- aov(count ~ spray, data=test01)
> ?
>
> I can't resolve what will be "+var3"?
>
>
> B.R.
> Stephen L
>
>
>
> ______________________________________________
> 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.
>



More information about the R-help mailing list