[R] extraction of p-value

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri Oct 29 13:21:26 CEST 2004


On Fri, 29 Oct 2004, Luis Rideau Cruz wrote:

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

It is part of the standard output of summary.

> I have tried several commands but to not vail

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.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list