[R] logistic regression

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Fri Mar 14 20:09:40 CET 2003


Thomas Lumley <tlumley at u.washington.edu> writes:


> On 14 Mar 2003, Peter Dalgaard BSA wrote:
> 
> > Frank E Harrell Jr <fharrell at virginia.edu> writes:
> >
> >
> > > If you have no more than one continuous variable you can pre-process
> > > (outside of R) to collapse the data into frequency counts. I did not
> > > check to see if glm handles frequency case weights. The lrm function
> > > in the Design package
> > > (http://hesweb1.med.virginia.edu/biostat/s/Design.html) does.
> >
> > glm can have a matrix (cbind(success,failure)) as response.
> 
> Or case weights.

Right. (And actually explained on p.194 in my own book too! I just got
myself confused over whether it would check for non 0-1 responses.)

-- 
   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