Skip to content
Prev 173947 / 398503 Next

set intercept in glm to non-0

On Mon, 16 Mar 2009, David Winsemius wrote:

            
Yes

dat$ones<-1
glm(y~0+x+offset(ones), data=dat, family=whatever)
Only in the sense that if the model fits badly it might run up against the edge of the parameter space in some families, which is no different than the potential problems with a zero intercept.

       -thomas
Thomas Lumley			Assoc. Professor, Biostatistics
tlumley at u.washington.edu	University of Washington, Seattle