Re: [R] Understanding output of summary(glm(...))

2008-08-20 Thread Bill.Venables
nt: Wednesday, 20 August 2008 4:37 PM To: [EMAIL PROTECTED] Subject: [R] Understanding output of summary(glm(...)) Simple example of 5 groups of 4 replicates. >set.seed(5) >tmp <- rnorm(20) >gp <- as.factor(rep(1:5,each=4)) >summary(glm(tmp ~ -1 + gp, data=data.frame(tmp, gp

[R] Understanding output of summary(glm(...))

2008-08-19 Thread Daren Tan
Simple example of 5 groups of 4 replicates. >set.seed(5) >tmp <- rnorm(20) >gp <- as.factor(rep(1:5,each=4)) >summary(glm(tmp ~ -1 + gp, data=data.frame(tmp, gp)))$coefficients >Estimate Std. Error t value Pr(>|t|)gp1 -0.1604613084 0.4899868 >-0.3274809061 0.7478301gp2