Displaying 2 results from an estimated 2 matches for "prtanova".
Did you mean:
permanova
2010 Aug 23
3
extracting p-values from Anova objects (from the car library)
Dear all,
is there anyone who can help me extracting p-values from an Anova object
from the car library? I can't seem to locate the p-values using
str(result) or str(summary(result)) in the example below
> A <- factor( rep(1:2,each=3) )
> B <- factor( rep(1:3,times=2) )
> idata <- data.frame(A,B)
> fit <- lm( cbind(a1_b1,a1_b2,a1_b3,a2_b1,a2_b2,a2_b3) ? sex,
2010 Aug 24
0
mlm for within subject design
...ata.wide)
Error in inherits(x, "data.frame") : object 'Data.wide' not found
I am guessing that you have an object Data.wide and you are not giving
us any look at it.
Using the lm help page example:
It appears that the print method for Anova is what would return the p-
values:
prtAnova <- Anova(lm.D9 <- lm(weight ~ group), type="III")
> str(prtAnova )
Classes ?anova? and 'data.frame': 3 obs. of 4 variables:
$ Sum Sq : num 253.21 0.688 8.729
$ Df : num 1 1 18
$ F value: num 522.13 1.42 NA
$ Pr(>F) : num 9.55e-15 2.49e-01 NA
-...