I'm working with diving BOUTS in a marine mammal (data set= DIVING). A bout is a set of dives interspaced by a timelaps at the surface. I want to construct a LMM and check two different groups of animals (lactating (L) and non lactating (NL) animals) to see if bout duration is different because of the energetic constraints of lactation. Fixed factor is each group (NL and L), the Body conditions of each female (BCI) and random effect is each female (FemID).

so the model was (data was logtransformed to meet the assumptions):

EQ1

Model1=lmer(log (BoutDur)~Group + BCI+ (1IFemID), data=DIVING)

Mean Bout duration however may depends on the mean duration of each dive composing the bout (divedur) and also the mean depth of each dive (divedeph). when checking this I checked this separated. first:

EQ2: DIVEDUR

lmnull= lmer (log (BoutDur)~Group*divedur+ BCI+ (1IFemID), data=DIVING)

lmalt=lmer (log (BoutDur)~Group + BCI+ (1IFemID), data=DIVING)

ANOVA(lmnull,lmalt)

second: EQ3: DIVEDEPH

lmnull2= lmer (log (BoutDur)~Group*divedeph+ BCI+ (1IFemID), data=DIVING)

lmalt2=lmer (log (BoutDur)~Group + BCI+ (1IFemID), data=DIVING)

ANOVA(lmnull2,lmalt2)

Both interactions were significant so I guess now I need to reconstruct EQ1 to incorporate these interactions and check the significance of the variable GROUP (NL and L) but I get a little confused on how to add both interactions in R using lmer. This is what i WOULD do but I'm not sure and here is where I need some help...

lm3= lmer (log (BoutDur)~Group*divedeph*divedur+ BCI+ GROUP (1IFemID), data=DIVING)

lm4= lmer(log (BoutDur)~Group*divedeph*divedur+ BCI+ (1IFemID), data=DIVING)

ANOVA(lm3,lm4)

because Im using log transformed data, this also gets me a little confused too. Thanks a lot for your help!

R

More Renato Borras-Chavez's questions See All
Similar questions and discussions