This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Mixed model analysis using lme4

Hi all,

I am a novice in using mixed models. I am not sure how to set up the fixed and random effects in mixed model. Your expertise would be much appreciated.

My experimental set up is as follows: Three years of experiment (Experiment), three nested-association-mapping families (Family) and within each family 50 lines making a total of 150 lines (Line). For each of the line, there are three replicates (Replicate). Several traits were measured (Trait).

So now I am not confident to define factors as fixed and which are random, which are to be nested within higher level grouping factor.

lmer (trait ~ (1|Genotype) + Experiment + (1:Replicate:Lines) + (1|Lines:Family) + (1|Family:Experiment)

Is this the correct way to do it?

mixed-model fixed-effect lme4 random-effect lmer

0 answers

No answers yet.

Log in to answer this question.