Skip to content
Prev 164722 / 398506 Next

Some clarificatins of anova() and summary ()

On Dec 14, 2008, at 9:40 AM, Tanmoy Talukdar wrote:

            
For replication purposes, it might be good to set a seed for the random
number generation.

set.seed(127)
You should also run anova on these models:

intact21 <- lm(y~x2+x1)
intact12 <- lm(y~x1+x2)
Both anova and summary were in agreement that the P-value for addition  
of x2 ito a
model that already 1ncluded x1 is 0.0296. One of them uses the t  
statistic and the
other used the F statistic. I am not sure where your confusion lies.