Skip to content

How to run an Auto Regressive Generalized Linear Mixed Model

2 messages · Danielle Rudley, Ben Bolker

#
Hello all,

I'm trying to run Auto Regressive Linear Mixed Models in R using the nlme()
package. For my continuous response variables I have used lme() with the
correlation set as 'corAR1()', but one of my response variables has a
poisson distribution (i.e.- count of number of conductive xylem cells). I
was wondering how to run an AR Generalized LMM within the nlme() package,
or if there was another solution to this. Thanks so much for your help.

Cheers,
#
You can use the glmmPQL function in the MASS package; the glmmTMB 
package can also handle autoregressive GLMMs. (Also, MCMCglmm and brms 
if you want to go Bayesian.)
On 6/23/21 6:25 AM, Danielle Rudley wrote: