Skip to content

extraction of p-value

3 messages · Luis Ridao Cruz, PIKAL Petr, Brian Ripley

#
R-help,

I wish to get the p-values of anova model as numeric and not as part of
the standard output (print,summary,,,)

I have tried several commands but to not vail

Thank you
#
Hi

str(summary(fit)) will give you a whole picture how summary 
output list is structured.

summary(fit)[n] 

where n is an appropriate number will extract parts of a list. Just 
try and choose the one you need. Maybe n=4?

Cheers
Petr
On 29 Oct 2004 at 11:50, Luis Rideau Cruz wrote:

            
Petr Pikal
petr.pikal at precheza.cz
#
On Fri, 29 Oct 2004, Luis Rideau Cruz wrote:

            
It is part of the standard output of summary.
Please do as the posting guide asks and do your homework.  We have no idea 
what you tried and why it `not vail'.

If `anova model' means `aov model', see ?summary.aov.  Continuing that 
example

summary(npk.aov)[[1]]["Pr(>F)"]

something you will find discussed in the R-help archives.