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:> 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 > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.htmlPetr Pikal petr.pikal at precheza.cz
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 vailPlease 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