[R] Learning ANOVA

Stephen Liu satimis at yahoo.com
Tue Aug 17 03:25:57 CEST 2010


----- Original Message ----

From: Robert Baer <rbaer at atsu.edu>
To: Stephen Liu <satimis at yahoo.com>; r-help at 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 +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)


Hi Robert,

Thanks for your advice.

Can I add covariates selectively.

e.g.
There are 5 covariate, say aaa, bbb, ccc, ddd, eee

I only want to use 4 of them, say aaa, bbb, ddd, eee .  Then the construction 
will be;

>test.aov <- aov(aaa, bbb, ddd, eee, data=file_name)
??

Is there a limit of covariates to add?

TIA

B.R.
Stephen L






----- 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