Re: [R] Mixed effects model with a phylogenetic tree/ distance, matrix as a random effect

2013-06-04 Thread Terry Therneau
Take a look at lmekin() in the coxme package. The motivating data set for my development of coxme was the Minnesota Family Breast Cancer project: 24050 subjects in 462 families. The random effect is an intercept per subject with sigma^2 K as its variance where K is the kinship matrix (1 for se

Re: [R] Mixed effects model with a phylogenetic tree/ distance matrix as a random effect

2013-06-03 Thread Ben Bolker
Bert Gunter gene.com> writes: > > Recommendation: Post this to the R-sig-mixed-models list, not here. > > Cheers, > Bert Seconded. Alternatively you could try the r-sig-ph...@r-project.org mailing list, although I think I would try R-s-m-m first. > > On Mon, Jun 3, 2013 at 9:27 AM, Roey

Re: [R] Mixed effects model with a phylogenetic tree/ distance matrix as a random effect

2013-06-03 Thread Bert Gunter
Recommendation: Post this to the R-sig-mixed-models list, not here. Cheers, Bert On Mon, Jun 3, 2013 at 9:27 AM, Roey Angel wrote: > Hi, > I'm trying to build a mixed-effects model in which I'd like to include > either a distance matrix or a phylogenetic tree as a random effect. > The troubles

[R] Mixed effects model with a phylogenetic tree/ distance matrix as a random effect

2013-06-03 Thread Roey Angel
Hi, I'm trying to build a mixed-effects model in which I'd like to include either a distance matrix or a phylogenetic tree as a random effect. The troubles I've had are that: 1. Function lmer() in package lme4 only accepts a data frame column as a random factor and not a distance matrix. 2. Fun