Re: [R] glm fit with no intercept

2005-01-07 Thread Göran Broström
On Fri, Jan 07, 2005 at 05:14:29PM +0100, Peter Dalgaard wrote: > "Gudrun Jonasdottir" <[EMAIL PROTECTED]> writes: > > > Dear R-help list members, > > > > I am currently trying to fit a generalized linear model using a binomial > > with the canonical link. The usual solution is to use the R funct

Re: [R] glm fit with no intercept

2005-01-07 Thread Prof Brian Ripley
On Fri, 7 Jan 2005, Gudrun Jonasdottir wrote: I am currently trying to fit a generalized linear model using a binomial with the canonical link. The usual solution is to use the R function glm() in the package "stats". However, I run into problem when I want to fit a glm without an intercept. It is

Re: [R] glm fit with no intercept

2005-01-07 Thread Rolf Turner
As in any modelling situation in R or S, to suppress the intercept you simply put a ``-1'' in the formula. E.g.: fit <- glm(y~x-1,family=binomial) cheers, Rolf Turner [EMAIL PROTECTED]

Re: [R] glm fit with no intercept

2005-01-07 Thread Peter Dalgaard
"Gudrun Jonasdottir" <[EMAIL PROTECTED]> writes: > Dear R-help list members, > > I am currently trying to fit a generalized linear model using a binomial > with the canonical link. The usual solution is to use the R function glm() > in the package "stats". However, I run into problem when I want

Re: [R] glm fit with no intercept

2005-01-07 Thread Dimitris Rizopoulos
nuary 07, 2005 3:40 PM Subject: [R] glm fit with no intercept Dear R-help list members, I am currently trying to fit a generalized linear model using a binomial with the canonical link. The usual solution is to use the R function glm() in the package "stats". However, I run into problem w

[R] glm fit with no intercept

2005-01-07 Thread Gudrun Jonasdottir
Dear R-help list members, I am currently trying to fit a generalized linear model using a binomial with the canonical link. The usual solution is to use the R function glm() in the package "stats". However, I run into problem when I want to fit a glm without an intercept. It is indicated that the