[R] extract p-value from an aov-oject
Peter Ehlers
ehlers at ucalgary.ca
Fri Nov 26 13:43:49 CET 2010
On 2010-11-26 03:05, peter_petersen wrote:
>
> Hello!
>
> I am trying to extract a p-value from an aov-object. I´ve done some research
> on the internet and found a number of solutions, but somehow, none seems to
> work for me.
>
> This is the Object:
>> summary(rt.aov)
>>
>> Error: pbn
>> Df Sum Sq Mean Sq F value Pr(>F)
>> Residuals 9 378283 42031
>>
>> Error: pbn:expCond
>> Df Sum Sq Mean Sq F value Pr(>F)
>> expCond 2 7312 3656.0 0.4663 0.6347
>> Residuals 18 141122 7840.1
>
> I would like to recieve an object, that only includes "0.6347".
>
> Any Advice?
Try
summary(rt.aov)[[2]][[1]][1,5]
or
summary(rt.aov)[[2]][[1]][1,"Pr(>F)"]
Peter Ehlers
More information about the R-help
mailing list