[R] Find main effect in 2-way ANOVA

Christoph Buser buser at stat.math.ethz.ch
Mon Nov 28 09:14:43 CET 2005


Hi

It is not so clear to me what your intention is. Could you
provide a reproducible example to show what you want to do. 

Regards,

Christoph Buser

--------------------------------------------------------------
Christoph Buser <buser at stat.math.ethz.ch>
Seminar fuer Statistik, LEO C13
ETH (Federal Inst. Technology)	8092 Zurich	 SWITZERLAND
phone: x-41-44-632-4673		fax: 632-1228
http://stat.ethz.ch/~buser/
--------------------------------------------------------------


Gao Fay writes:
 > Hi,
 > 
 > I use anova() to find interaction effect and then I need to find data with 
 > main effect from those data with interaction effect. How to do that?
 > 
 > I used : anova(lm(data~factor1*factor2)), then select data with interaction 
 > effect. Then I need to select those data also with main effect of factor1 
 > or factor2, from previous selected data. How to do that? Many thanks for 
 > your time on my quesiton!
 > 
 > Fay
 > 
 > ______________________________________________
 > R-help at stat.math.ethz.ch mailing list
 > https://stat.ethz.ch/mailman/listinfo/r-help
 > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html




More information about the R-help mailing list