[R] ANOVA in R

Bert Gunter gunter.berton at gene.com
Sat Dec 7 19:36:01 CET 2013


I think you start by doing your homework:

1. Read "An Inroduction to R" (ships with R) or other R online
tutorial. There are many good ones.

2. Use R's Help system:
?aov
?lm
?anova

there will be relevant links in these docs that you should follow,
especially to the use of formulas for model specification and
summary() for printing results (including anova tables).

3. Alternatively, have a look at the Rcmdr package for a GUI interface
to R that may meet your needs while allowing you to skip the homework.

Cheers,
Bert




On Sat, Dec 7, 2013 at 8:30 AM, Robin Mjelle <robinmjelle at gmail.com> wrote:
> ID
>
> a_t1    a_t2    b_t1    b_t2
> CACCCGTAGAACCGACCTTGCG_mmu-miR-99b-5p    1578    1941    2348    10941
> CACCCGTAGAACCGACCTTGC_mmu-miR-99b-5p    442    426    564    3839
> CACCCGTAGAACCGACCTTG_mmu-miR-99b-5p    54    43    66    253
> CCGTAGAACCGACCTTGCG_mmu-miR-99b-5p    26    33    33    157
> CGTAGAACCGACCTTGCG_mmu-miR-99b-5p    23    22    38    187
> CACCCGTAGAACCGACCT_mmu-miR-99b-5p    17    27    31    189
> ACCCGTAGAACCGACCTTGCG_mmu-miR-99b-5p    14    19    30    94
>
> I want to run an ANOVA test on the rows above. I have two conditions with
> two replicates each. I assume that there is no difference between a and b
> for the different rows. I want to get which rows a different between a and
> b.
> How do I approach this in R?
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.



-- 

Bert Gunter
Genentech Nonclinical Biostatistics

(650) 467-7374



More information about the R-help mailing list