[R] Save P values calculated with anova

2013-11-04 Thread Anders Tisell
Hi, I have created a mixed linear model with one fixed factor and two random factors then I would like to test if there is a significant difference between the two groups. To do this I calculate the model with the lmer function: MyModel - lmer(...) and do a anova of the model to estimate if

Re: [R] Save P values calculated with anova

2013-11-04 Thread ONKELINX, Thierry
-project.org] Namens Anders Tisell Verzonden: maandag 4 november 2013 15:11 Aan: r-help@r-project.org Onderwerp: [R] Save P values calculated with anova Hi, I have created a mixed linear model with one fixed factor and two random factors then I would like to test if there is a significant difference

Re: [R] Save P values calculated with anova

2013-11-04 Thread Adrian Dușa
That would be: MyAnova$Pr(F) and since that is an Anova table, you actually only need the first value: MyAnova$Pr(F)[1] Hope this helps, Adrian On Mon, Nov 4, 2013 at 4:10 PM, Anders Tisell anders.tis...@liu.se wrote: Hi, I have created a mixed linear model with one fixed factor and two