Green Crab Experiment Part 56
Back to the modeling board (in a non-extreme way)
Carolyn looked at the revisions I made to the methods and results of the manuscript. She noted that for this experiment, it actually makes sense to include the data for crabs that failed to right! This was also brought up by a reviewer. So I opened this R Markdown script with the hope that adding 5 censored values into the model wouldn’t mess things up.
Obviously, it messed things up. Adding the censored values back in obviously broke the outlier assumption of the model, since I added outlier data back in! However, it also led to issues with heteroskedasticity and overdispersion. In order to fix these issues, I ended up changing the following in the model’s underlying structure:
- Used a heavy-tailed student t model family instead of the Gamma family, since the Gamma family can’t accommodate right-tailed data
- Modeled dispersion by temperature, not temperature and sex
- Once I changed to using
t_family, I also used sum-to-zero contrasts to center the treatment and sex categorical predictors around a mean instead of doing categorical comparisons. This ended up being necessary to get accurate VIF information to assess multicollinearity
#Assign sum-to-zero contrasts to center categorical predictors around their grand mean (needed for getting accurate VIF information)
contrasts(modTTR$treatment) <- contr.sum(3) # 3 temperature levels
contrasts(modTTR$sex) <- contr.sum(2) # 2 sex levels
I investigated four different models:
- Standard model (temperature, day, and temperature x day)
- Polynomial model (temperature, day, polynomial day, temperature x day, and temperature x polynomial day)
- Sex model (temperature, day, temperature x sex, and temperature x day): This was the most parsimonious model I used initially.
- Carapace width model (temperature, day, temperature x day, temperature x carapace width): I added this model to the evaluation list because in the sex model, the main effect of sex was not a significant predictor but carapace width was. Sex and carapace width are likely related because females tend to be smaller than their male counterparts. I wanted to see if adding a carapace width directly into the model would yield similar output.
Overall, the polynomial model had the lowest AIC score. However, when I went to check the assumptions, the polynomial model had huge issues with heteroskedasticity, dispersion, and outliers! The next-best model was the sex model. With this model, there were outliers but not any other issues. I found it interesting that the carapace width model did not perform better with AIC than the sex model. In the carapace width model, the three main effects of temperature, day, and carapace width were significant, whereas in the sex model, temperature, day, and carapace were significant predictors but sex was not. It suggests that at the interaction level, there are other factors associated with sex that may be important for thermal response. It’s not very strong evidence in support of previous literature that highlights the sex-specific impacts of temperature on marine invertebrates, but it is somewhere in that realm.
I went through the process of updating all of the model outputs, which can be found here.
Going forward
- Conduct alternative HVA analysis
- Address discussion comments
- Modify supplementary material section
- Send revised manuscript to co-authors