[R] sas vs r

Göran Broström gb at stat.umu.se
Wed Apr 28 11:39:34 CEST 2004


On Wed, Apr 28, 2004 at 11:13:30AM +0200, Henric Nilsson wrote:
> At 05:24 2004-04-28, Liliana Forzani wrote:
> 
> >I have a code in sas (NLMIXED) and I have a hard time converting to r
> >1)it is poisson, with random intercept, but
> >it have an offset.  Means, I do not want one of the coefficient to be
> >estimate. Means, may model is
> >g(mean) = beta X + Z,
> >Z fixed, X fixed and beta to be estimate
> >I am using glmmML.
> 
> If I recall correctly, neither glmmML nor glmmPQL (from MASS) handles 
> offset terms. But GLMM in the lme4 package does.

glmmML handles offset terms. I am pretty sure that glmmPQL does too.

> 
> >2) the same but I have random slope (and I think with glmmML I can use
> >only random intercept)
> 
> GLMM in lme4 can do this.
> 
> >3) I try to use nlme, is this "equivalent" to NLMIXED?
> 
> No, nlme fits non-linear and linear mixed-effect models with Gaussian error 
> terms.
> 
> I hope this helps,
> Henric
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! 
> http://www.R-project.org/posting-guide.html

-- 
 Göran Broström                    tel: +46 90 786 5223
 Department of Statistics          fax: +46 90 786 6614
 Umeå University                   http://www.stat.umu.se/egna/gb/
 SE-90187 Umeå, Sweden             e-mail: gb at stat.umu.se




More information about the R-help mailing list