Skip to content

revised link function of logistic regression model?

3 messages · Jian Zhang, David Duffy, Douglas Bates

#
On Thu, 23 Jun 2011, Jian Zhang wrote:

            
I shall hazard a guess and say that you can't, exactly as you have 
specified it.  You could fit such a model by ML, but you would have to 
hand code it using nlme (?) or directly maximizing the likelihood using 
optim() etc.  But I suspect there are many similar models that might be 
better behaved.  Are you trying to fit a parametric survival model in a 
roundabout fashion?

Cheers, David Duffy.
#
On Thu, Jun 23, 2011 at 1:31 PM, Jian Zhang <jzhang1982 at gmail.com> wrote:
Your terminology is a bit off:  b0+b1*x is the linear predictor, g(p)
= log(p/(1-p)) is the link function and g^1(eta) =
exp(eta)/(1+exp(eta)) is the inverse link.
The glm function allows for a user-written family but, unfortunately,
doesn't allow for additional covariates or even constants.  It is
possible to "smuggle" them  in at the time that the family is
instantiated.  See the glm.nb function in the MASS package for an
example.