Estimate Diet Proportions Using Multivariate Tweedie Model

Defines predict function that transforms output from a Tweedie Generalized Linear Mixed Model (using 'glmmTMB'), Generalized Additive Model (using 'mgcv'), or spatio-temporal Generalized Linear Mixed Model (using package 'tinyVAST'), and returns predicted proportions (and standard errors) across a grouping variable from an equivalent multivariate-logit Tweedie model. These predicted proportions can then be used for standard plotting and diagnostics. See Thorson et al. 2022 .


mvtweedie

DOI

An R package to interpret a Tweedie generalized linear model (GLM) or generalized additive model (GAM) involving multiple classes as an estimate of proportions for each class, implicitly involving a multivariate-logit transformation for parameters and predictions. This approach generalizes the Poisson-to-multinomial transformation to allow for non-integer responses, and can analyze either pre-processed (transformed to proportions) or raw (zero-inflated positive real values) data.

This approach is helpful, e.g., when analyzing diet samples that are heavily zero inflated without pre-processing the samples prior to analysis. In these cases, the Tweedie distribution can be interpreted mechanistically as a thinned and double-marked Poisson point process representing foraging processes.

Citation

Thorson, J. T., Arimitsu, M. L., Levi, T., & Roffler, G. (2022). Diet analysis using generalized linear models derived from foraging processes using R package mvtweedie. Ecology. 103(5): e3637.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("mvtweedie")

1.2.0 by James Thorson, 9 months ago


https://james-thorson-noaa.github.io/mvtweedie/


Browse source code at https://github.com/cran/mvtweedie


Authors: James Thorson [aut, cre] (ORCID:


Documentation:   PDF Manual  


GPL-3 license


Imports stats, tibble

Suggests mgcv, knitr, rmarkdown, ggplot2, glmmTMB, lattice, pdp, raster, sp, RANN, plotrix, tweedie, abind, rnaturalearth, rnaturalearthdata, sf, dplyr, viridisLite, tinyVAST


See at CRAN