0
$\begingroup$

I have a problem writing a glmm model in the lme4 package. A little background: I measured olfactory behavior (OB) in fruit flies (80 genetic lines in total), they are from two different populations, and i measured OB in the two ontogenetic stages (adult, larvae) using two differnt fruit as stimulus (apple, grape). So i have:
RI: response index as the response variable (dependent variable)
Line: ramdom variable nested within population
population : fixed variable
fruit: fixed variable
stage: fixed variable
sex: fixed variable nested within stage (because larvae has no sex)
interactions: all posible.
I used a family=binomial and Link=logit in the modeling. The real problem is that i don´t know how to write the sex/stage nested variable and the interactions

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.