Skip to content
Prev 2 / 20628 Next

heterogeneity in random effects variance

Hi Vito,

I don't think that this functionality exists in lme or lmer right now.
What you describe looks to me as though you'd like to use the varExp
class of functions at the random effects level, instead of at the
within-group level.  The random-effects level has a set of classes for
patterned covariance matrices; the pdMat classes, but this set doesn't
seem to include anything like the varExp class.

So, one thing is that you could write a new pdMat class that provides
the varExp functionality.  I only know vaguely how a person might do
that.  I did a bit of research on writing new varFunc classes but
didn't get enough detail, or have enough time, to start hacking. 
I am happy to share the little that I know if that would be helpful.  

You might also try an EM approach, fitting simpler models within a
loop, using gls and lme alternately, and hoping that it converges.  I
am not sure how that would work right now, but the problem is
interesting, and I'll ponder on it further.  If anyone can suggest how
it might work off the cuff, that would be great!

It is possible that other packages or programs might be able to fit
such models.

Cheers

Andrew
On Fri, Jan 26, 2007 at 10:10:42AM +0100, vito muggeo wrote: