Re: [R] logit GLM without intercept

From: <>
Date: Tue, 22 Apr 2008 17:04:24 +0200

Hi Robert,

you can exclude the intercept by including "-1" in the formula:

value <- as.numeric(runif(20)<.4)
ppm <- rnorm(20)



> Dear Statisticians,
> I would like to analyse my data with a GLM with binomial error distribution
> and logit link function. The point is that I want a model fitted without
> intercept, i.e. the fitted curve should start at y=0.5 for x=0.
> I tried it with the following code:
> glm(value~0+ppm, binomial)
> Does this code yield the correct model or is there another possibility? I?d
> appreciate it very much if you could help me out with this. I attached some
> example data.
> Thanks & all the best
> Robert


______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 22 Apr 2008 - 15:57:18 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 22 Apr 2008 - 17:30:31 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive