- XXX.
Bat Morphology
Note
The emtrends()
function was changed in the recent version of the emmeans
package and I did not catch this change. Because of this, the use of tran="log"
in emtrends()
followed by type="response"
in summary()
does not produce the result that I (and many of you) expected. As such, the key below does not do any back-transformation. However, for those of you that tried the back-transformation I graded it as if it returned the result that we expected. I apologize for the confusion. I think for the time being, the best course of action is to not back-transform the results from emtrends()
.
Biologists recognize that brains perform different sensory operations for different activities of the animal. As such there is a thought that the size of brains, or the size of particular portions of brains, may differ depending on the primary foraging activity of the animal. For example, senses that are most useful for bats that are insectivorous may be quite different than senses that are most useful for nectar-feeding bats and, as such, bats in these two groups may have differently sized brains.
To assess this hypothesis, Hutcheon et al. (2002) recorded the volume of three brain regions (main olfactory bulb, hippocampus, auditory nuclei) for 63 species of bats (Chiroptera). They were primarily interested in determining if the volume of brain regions differed among broad foraging categories (phytophagous, gleaner, and aerial insectivore). However species of bats differ in overall size and the size of the brain is likely related to overall size (i.e., larger bats likely have larger brains). Thus, they also recorded the body weight for each species of bat so that it could be included in a model as a covariate and, thus, effectively “accounted for” when considering brain size.
With this the response variable is the main olfactory bulb volume (MOB), the covariate is body weight, and the factor variable is the foraging group categories (called “diet” in the data). The first hypothesis to be tested (i.e, parallel lines test) is
- H0: “the relationship between MOB and body weight does not differ by foraging group”
- HA: “the relationship between MOB and body weight does differ by foraging group”
If this H0 is not rejected (i.e., the lines are parallel) then the following two sets of hypotheses will be tested (i.e., coincident lines and relationship tests),
- H0: “the mean MOB at the mean body weight does not differ among foraging group”
- HA: “the mean MOB at the mean body weight does differ among foraging group”
and
- H0: “there is not a relationship between MOB and body weight”
- HA: “there is a relationship between MOB and body weight”
The sample size is very unbalanced with very few gleaners in the data set. The data are independent as the MOB and body weight measurements are summary measures for entire species and not measurements on individual bats. It is not realistic to think that summary measurements for entire species are connected across all of the species. The assumptions are clearly not met on the original scale as the residual plot does not show a “random scatter” of points, though it is difficult to tell if the issue is linearity, homoscedasticity, or both. In addition, the residuals are not normally distributed (Anderson-Darling p<0.00005) or not strongly skewed and several outliers are present (p<0.00005). The assumptions are met when both variables are transformed to the log scale as seen by a residual plot with neither an evident curve or funnel-shape, normally distributed residuals (Anderson-Darling p=0.4530), and no outliers (p>1). Thus, the analysis will continue on the log-log transformed scale.
The relationship between log MOB and log body weight differs among the three foraging groups (parallel lines test p=0.0107). It appears that the slope of this relationship for the aerial insectivore group is different from the slope for gleaners (p=0.0221). The slopes for this relationship do not however differ between phytophages and gleaners (p=0.2951) or aerial insectivores (p=0.0619). Specifically, it appears that the slope for the aerial insectivores is between 0.064 and 0.993 greater than the slope for gleaners. The slope of the relationship for all three groups was significantly positive (p≤0.0172).
In conclusion, there is a significant positive relationship between mean MOB and body weight on the log-log scale (so it is a power function relationship), but that relationship differs among foraging groups. It appears that the mean MOB increases at a faster rate with increasing body weight for aerial insectivores than for gleaners. An inspection of the graphic though suggests that the mean MOB for phytophages is generally greater than that for aerial insectivores and gleaners over the range of observed body weights. In summary, there does appear to be some effect of foraging behavior on the size of the main olfactory bulb, irrespective of the overall size of the bat.
R Code and Results
bat <- read.csv("https://raw.githubusercontent.com/droglenc/NCData/master/Batmorph2.csv") %>%
filter(diet!="vampire") %>%
mutate(logbodywt=log(bodywt),logmob=log(mob))
xtabs(~diet,data=bat)
diet
aerial.insectivore gleaner phytophage
27 5 29
ivr1 <- lm(mob~bodywt+diet+bodywt:diet,data=bat)
assumptionCheck(ivr1)
assumptionCheck(ivr1,lambday=0,lambdax=0)
ivr1t <- lm(logmob~logbodywt+diet+logbodywt:diet,data=bat)
anova(ivr1t)
Analysis of Variance Table
Response: logmob
Df Sum Sq Mean Sq F value Pr(>F)
logbodywt 1 89.223 89.223 502.3742 < 2.2e-16
diet 2 22.803 11.402 64.1967 4.139e-15
logbodywt:diet 2 1.754 0.877 4.9383 0.01065
Residuals 55 9.768 0.178
mc1 <- emtrends(ivr1t,specs=pairwise~diet,var="logbodywt")
( mc1s <- summary(mc1,infer=TRUE) )
$emtrends
diet logbodywt.trend SE df lower.CL upper.CL t.ratio p.value
aerial.insectivore 0.959 0.0797 55 0.7996 1.119 12.043 <.0001
gleaner 0.431 0.1755 55 0.0793 0.783 2.456 0.0172
phytophage 0.715 0.0690 55 0.5770 0.854 10.367 <.0001
Confidence level used: 0.95
$contrasts
contrast estimate SE df lower.CL upper.CL t.ratio p.value
aerial.insectivore - gleaner 0.528 0.193 55 0.06418 0.993 2.742 0.0221
aerial.insectivore - phytophage 0.244 0.105 55 -0.00981 0.498 2.316 0.0619
gleaner - phytophage -0.284 0.189 55 -0.73850 0.170 -1.508 0.2951
Confidence level used: 0.95
Conf-level adjustment: tukey method for comparing a family of 3 estimates
P value adjustment: tukey method for comparing a family of 3 estimates
ggplot(data=bat,mapping=aes(x=logbodywt,y=logmob,
color=diet,fill=diet)) +
geom_point() +
labs(x="log Body Weight",y="log Main Olfactory Bulb Volume") +
theme_NCStats() +
geom_smooth(method="lm",se=TRUE,alpha=0.2)