[R] extracting p-values from Anova objects (from the car library)

Johan Steen johan.steen at gmail.com
Mon Aug 23 21:01:40 CEST 2010


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, 
data=Data.wide)
 > result <- Anova(fit, type="III", test="Wilks", idata=idata, idesign=˜A*B)


Any help would be much appreciated!


Many thanks,

Johan



More information about the R-help mailing list