Hi, I would like to extract the p-value of the F-statistic of a aov-object's summary. Getting the p-value is so easy with t-tests (t.test(g1, y = g2, var.equal = FALSE)$p.value), but I couldn't find anything like that for ANOVAs. Any help appreciated, Sven
At 10:11 AM 6/14/2004, Sven Hartenstein wrote: >Hi, > >I would like to extract the p-value of the F-statistic of a aov-object's >summary. > >Getting the p-value is so easy with t-tests (t.test(g1, y = g2, >var.equal = FALSE)$p.value), but I couldn't find anything like that for >ANOVAs. > >Any help appreciated, > Maybe something like: >?summary.aov will give you a clue
Sven Hartenstein wrote:> Hi, > > I would like to extract the p-value of the F-statistic of a aov-object's > summary. > > Getting the p-value is so easy with t-tests (t.test(g1, y = g2, > var.equal = FALSE)$p.value), but I couldn't find anything like that for > ANOVAs. >Look at str(summary(aov.object)) For example example(aov) str(summary(npk.aov))