[R] Paired test for 2-way ANOVA

A Ezhil ezhil02 at yahoo.com
Mon Apr 20 15:25:27 CEST 2009


Hi,

I have an experimental data with 2 factors: visit and treatment. Each subject has 2 visits and on each visit they get a treatment. We take samples before and after treatment. I can easily to do the 2-way ANOVA in R with visit and treatment as factors. 

anova( lm(data ~ visit*treatment) )

If I want to do the same 2-way ANOVA for the paired samples, how can I do that? Is there any R packages for that?

Thanks in advance.

Kind regards,
Ezhil




More information about the R-help mailing list