Skip to content

Package for GLMM with correlation matrix

1 message · Ben Bolker

#
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

   Hmmm.
   Hard-coding your correlation matrix into glmmPQL by way of corSymm
should
be possible, but I think it could be quite tricky -- you would have to
read and understand
the Pinheiro and Bates paper referenced in ?corSymm, and really
understand the way that
corStruct objects are created and manipulated in nlme, in order to
have a shot at doing
this.
   There are several existing tools for pedigree-based mixed model
estimation (pedigreemm,
kinship, MCMCglmm), and some tools in R's phylogenetic packages (ape)
for integrating phylogenetic
information with glmmPQL (the methods section in the paper that
introduces the EMMA package
refers to these phylogenetic frameworks, which is why I mention this);
I would see if any of them
will serve your purpose ...

  good luck
    Ben Bolker
On 10-10-22 01:18 PM, wong wrote:
y=sample(c(1,0),48,replace=T);x=sample(1:4,48,replace=T);id=1:48;covMat=matrix(rnorm(48*48),nrow=48)
glmmPQL(y~x,random=~1|id,family=binomial,correlation=covMat)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkzCB+kACgkQc5UpGjwzenPzwgCfW7OWexFazDXlGjiW+QGtKVN4
MvIAnRA+NQK0j6LS7FNka6pA6In/yCWb
=R9AB
-----END PGP SIGNATURE-----