[R] lm and anova

From: Sara Sjöstedt de Luna <sara.de.luna_at_math.umu.se>
Date: Thu, 12 May 2011 08:37:43 +0200


Hi!

We have run a linear regression model with 3 explanatory variables and get the output below. Does anyone know what type of test the anova model below does and why we get so different result in terms of significant variables by the two tables?

Thanks!

/Sara

> summary(model)

Call:
lm(formula = log(HOBU) ~ Vole1 + Volelag + Year) Residuals:

      Min 1Q Median 3Q Max -0.757284 -0.166681 0.009478 0.181304 0.692916 Coefficients:

             Estimate Std. Error t value Pr(>|t|)
(Intercept) 80.041737  12.018726   6.660 1.40e-07 ***
Vole1        0.005521   0.041626   0.133   0.8953
Volelag      0.033966   0.018392   1.847   0.0738 .
Year        -0.035927   0.006027  -5.961 1.08e-06 ***

anova(model)
Analysis of Variance Table
Response: log(HOBU)

          Df Sum Sq Mean Sq F value    Pr(>F)
Vole1      1 1.7877  1.7877 13.1772 0.0009486 ***
Volelag    1 0.5817  0.5817  4.2878 0.0462831 *
Year       1 4.8205  4.8205 35.5323 1.082e-06 ***
Residuals 33 4.4769 0.1357

        [[alternative HTML version deleted]]



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Thu 12 May 2011 - 08:29:39 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 12 May 2011 - 15:00:06 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive