[R] logistic regression without intercept

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Wed Aug 20 16:14:51 CEST 2003


Ross Boylan <ross at biostat.ucsf.edu> writes:

> Thanks to Thomas Lumley, Spencer Graves, and Steve Sullivan for their
> advice on and off list to modify the formula with +0 (which I did; it
> worked) or -1 at the end.
...
> > > Also, I noticed that S-Plus but not R has a glim routine that uses
> > > maximum likelihood.  What would be the equivalent?
> > 
> > glm.
> > 
> I thought glm was a minimize the deviations approach, which is different
> from maximize likelihood.

It minimizes deviance, which is a constant minus twice the
log-likelihood.... I.e. it's equivalent to ML (unless you want to
quibble about bias-corrected scale parameter estimation in the
Gaussian case.)

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907




More information about the R-help mailing list