Re: [R] set intercept in glm to non-0

2009-03-17 Thread Thomas Lumley
On Mon, 16 Mar 2009, David Winsemius wrote: Use an offset with a non-intercept model? Yes dat$ones<-1 glm(y~0+x+offset(ones), data=dat, family=whatever) I wonder if there could be problems depending on the choice of family. Only in the sense that if the model fits badly it might run up a

Re: [R] set intercept in glm to non-0

2009-03-16 Thread David Winsemius
Use an offset with a non-intercept model? I wonder if there could be problems depending on the choice of family. -- David Winsemius On Mar 16, 2009, at 9:29 PM, Peter Palenchar wrote: I know how to make the intercept 0 in glm, but I actually want to force my intercept to be 1. Is there

[R] set intercept in glm to non-0

2009-03-16 Thread Peter Palenchar
I know how to make the intercept 0 in glm, but I actually want to force my intercept to be 1. Is there a way I can do this? Peter __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http