I have a dataset like this:
individual1 | individual2 | Bray_Curtis | Dyad_type | proximity | matriline | id1 | id2 |
---|---|---|---|---|---|---|---|
Aapi | App | 0.47 | 1 | 0.14 | 1 | 1 | 2 |
Aapi | Eis | 0.60 | 2 | 0.03 | 0 | 1 | 4 |
Potj | Popp | 0.50 | 1 | 0.11 | 1 | 3 | 5 |
Aapi | Potj | 0.27 | 3 | 0.15 | 0 | 1 | 3 |
Ree | Eis | 0.63 | 4 | 0.66 | 0 | 6 | 4 |
I want to look at a possibile effect of the dyad type covariate on diet similarity (bray curtis indices). I have 4 levels of 'dyad_type', defined depending on the relationship between individual1 and individual2. The variable 'proximity' is the percent of times the individuals in the dyad were in proximity from each other when the other one was eating, and 'matriline' means that the 2 individuals are part (1) or not (0) of the same matriline.
I know that dyad_type and matriline affect proximity:
lmm1 <- lmer(proximity~dyad_type + matriline + (1|id1) + (1|id2))
Analysis of Deviance Table (Type III Wald chisquare tests)
Response: proximity
Chisq Df Pr(>Chisq)
(Intercept) 58.733 1 1.806e-14 ***
dyad_type 16.750 3 0.0007955 ***
matriline 19.777 1 8.702e-06 ***
these results make sense, as we expect some individuals to be more tolerant to each other while feeding, hence more in close spatial proximity, and members of the same matriline are expected to be generally more in close proximity.
HOWEVER, the aim of my analysis is to investigate if different dyad types and if individuals from the same matriline have more or less similar diets (described by bray-curtis indices), and I want to control for the effect from proximity.
Here is my model that seems to explain my data better (based on model comparisons with more or less interaction terms):
lmm2 <- lmer(formula = bray_curtis ~ dyad_type + proximity + matriline +
proximity*dyad_type + (1|id1) + (1|id2)
Am I doing the right thing here? I'm not sure if this is the right way to control for proximity in my results.
Thank you!