Skip to content
Prev 62042 / 398498 Next

glm fit with no intercept

On Fri, 7 Jan 2005, Gudrun Jonasdottir wrote:

            
Where is it so indicated?
ldose <- rep(0:5, 2)
numdead <- c(1, 4, 9, 13, 18, 20, 0, 2, 6, 10, 12, 16)
sex <- factor(rep(c("M", "F"), c(6, 6)))
SF <- cbind(numdead, numalive = 20 - numdead)
glm(SF ~ sex+ ldose, family = binomial)
glm(SF ~ sex + ldose - 1, family = binomial) # no intercept
glm(SF ~ ldose - 1, family = binomial) # and not even a factor

Please tell us more of what you have tried.