Re: [R] ANOVA tables - storing F values

2008-08-12 Thread Greg Snow
You need to store the result of the summary function: > sfit <- summary(fit) Then look at the structure of the sfit (or whatever you call it) object (depending on the fit, it may be different). You can do this with the 'str' function or the 'TkListView' function in the TeachingDemos package fo

Re: [R] ANOVA tables - storing F values

2008-08-12 Thread bartjoosen
Hi, lets look at an example: fit <- lm(sr ~ ., data = LifeCycleSavings) fit.anova <- anova(fit) you can see the structure from the anova: str(fit.anova) Classes ‘anova’ and 'data.frame': 5 obs. of 5 variables: $ Df : int 1 1 1 1 45 $ Sum Sq : num 204.1 53.3 12.4 63.1 650.7 $