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
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 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 > stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! R-project.org/posting-guide.html