[R] Any package to perform HLM (PROC GENMOD) like logistic regression in R?

2005-10-21 Thread William M. Grove
I know there are very nice facilities in Pinhiero and Bates for doing 
HLM-type modeling for continuous dependent variables.  But I would 
like to be able to do repeated measures logistic regression, or LR on 
clustered observations (at least with exchangeable correlation 
structures, and preferably with more general choices of 
within-cluster correlation structures).  Have I missed seeing some 
package in R that will do this, more or less the way GENMOD does in 
SAS?  I have not found a package to do thus in my scanning thus far.

Regards,

Will Grove   |
Psychology Dept. |
U. of Minnesota  |
-+

X-headers have PGP key info.; Call 612.625.1599 to verify key 
fingerprint before
accepting signed mail as authentic!

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] Any package to perform HLM (PROC GENMOD) like logistic regression in R?

2005-10-21 Thread Prof Brian Ripley
On Fri, 21 Oct 2005, William M. Grove wrote:

 I know there are very nice facilities in Pinhiero and Bates for doing
 HLM-type modeling for continuous dependent variables.  But I would
 like to be able to do repeated measures logistic regression, or LR on
 clustered observations (at least with exchangeable correlation
 structures, and preferably with more general choices of
 within-cluster correlation structures).  Have I missed seeing some
 package in R that will do this, more or less the way GENMOD does in
 SAS?  I have not found a package to do thus in my scanning thus far.

Well, you will need to tell us what it is that SAS does (I do have SAS but 
my licence code needs renewing which shows how little I use it).

There are two approaches to repeated measures logistic regression, the 
subject-specific and population-average approach.  Your description sounds 
closer to the latter, for which see the packages gee and geepack.
But GLMMs (the subject-specific approach) are covered in a number of 
packages including MASS, lme4 and glmmML.

My belief is that PROC GENMOD uses the GEE approach, and I would not call 
that an HLM.  To add confusion, there seems to have been a stand-alone 
program called GENMOD which is referenced in HLM-fitting reviews.

-- 
Brian D. Ripley,  [EMAIL PROTECTED]
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel:  +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UKFax:  +44 1865 272595

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] Any package to perform HLM (PROC GENMOD) like logistic

2005-10-21 Thread Alan Cobo-Lewis

I think you're looking for lmer( ... family=binomial ) in package lme4 by 
Bates  Sarkar.

William M. Grove [EMAIL PROTECTED] wrote:
I know there are very nice facilities in Pinhiero and Bates for doing 
HLM-type modeling for continuous dependent variables.  But I would 
like to be able to do repeated measures logistic regression, or LR on 
clustered observations

alan

--
Alan B. Cobo-Lewis, Ph.D.   (207) 581-3840 tel
Department of Psychology(207) 581-6128 fax
University of Maine
Orono, ME 04469-5742[EMAIL PROTECTED]

http://www.umaine.edu/visualperception

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html