Mixed effects model with a distance matrix as a random effect
Hi Roey, do you mean as Z-matrix or as var-covar relationship matrix? For the later see lmekin (coxme package). There you can specify a similarity matrix (K) for a random effect (u): u ~ N(0, sigma_u^2 K) or one of the following packages: regress, rrBLUP, EMMA (http://mouse.cs.ucla.edu/emma/) Bests Jonas
On Tue 04 Jun 2013 02:46:13 PM CEST, Roey Angel wrote:
Hi, I'm trying to build a mixed-effects model in which I'd like to include either a distance matrix as a random effect. The troubles I've had are that function lmer() in package lme4 only accepts a data frame column as a random factor and not a distance matrix. Is there a way around it? Thanks in advance Roey [[alternative HTML version deleted]]
_______________________________________________ R-sig-mixed-models at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models
-- __________________________________________________ Jonas Klasen PhD student Genome Plasticity and Computational Genetics Max Planck Institute for Plant Breeding Research