Diet analysis using generalized linear models derived from foraging processes using R package mvtweedie
Abstract Diet analysis integrates a wide variety of visual, chemical, and biological identification of prey. Samples are often treated as compositional data, where each prey is analyzed as a continuous percentage of the total. However, analyzing compositional data results in analytical challenges, f...
Published in: | Ecology |
---|---|
Main Authors: | , , , |
Format: | Article in Journal/Newspaper |
Language: | English |
Published: |
Wiley
2022
|
Subjects: | |
Online Access: | http://dx.doi.org/10.1002/ecy.3637 https://onlinelibrary.wiley.com/doi/pdf/10.1002/ecy.3637 https://onlinelibrary.wiley.com/doi/full-xml/10.1002/ecy.3637 https://esajournals.onlinelibrary.wiley.com/doi/pdf/10.1002/ecy.3637 |
id |
crwiley:10.1002/ecy.3637 |
---|---|
record_format |
openpolar |
spelling |
crwiley:10.1002/ecy.3637 2024-09-15T18:01:18+00:00 Diet analysis using generalized linear models derived from foraging processes using R package mvtweedie Thorson, James T. Arimitsu, Mayumi L. Levi, Taal Roffler, Gretchen H. 2022 http://dx.doi.org/10.1002/ecy.3637 https://onlinelibrary.wiley.com/doi/pdf/10.1002/ecy.3637 https://onlinelibrary.wiley.com/doi/full-xml/10.1002/ecy.3637 https://esajournals.onlinelibrary.wiley.com/doi/pdf/10.1002/ecy.3637 en eng Wiley http://creativecommons.org/licenses/by/4.0/ Ecology volume 103, issue 5 ISSN 0012-9658 1939-9170 journal-article 2022 crwiley https://doi.org/10.1002/ecy.3637 2024-08-01T04:22:50Z Abstract Diet analysis integrates a wide variety of visual, chemical, and biological identification of prey. Samples are often treated as compositional data, where each prey is analyzed as a continuous percentage of the total. However, analyzing compositional data results in analytical challenges, for example, highly parameterized models or prior transformation of data. Here, we present a novel approximation involving a Tweedie generalized linear model (GLM). We first review how this approximation emerges from considering predator foraging as a thinned and marked point process (with marks representing prey species and individual prey size). This derivation can motivate future theoretical and applied developments. We then provide a practical tutorial for the Tweedie GLM using new package mvtweedie that extends capabilities of widely used packages in R ( mgcv and ggplot2 ) by transforming output to calculate prey compositions. We demonstrate this approach and software using two examples. Tufted Puffins ( Fratercula cirrhata ) provisioning their chicks on a colony in the northern Gulf of Alaska show decadal prey switching among sand lance and prowfish (1980–2000) and then Pacific herring and capelin (2000–2020), while wolves ( Canis lupus ligoni ) in southeast Alaska forage on mountain goats and marmots in northern uplands and marine mammals in seaward island coastlines. Article in Journal/Newspaper Canis lupus fratercula Alaska Wiley Online Library Ecology 103 5 |
institution |
Open Polar |
collection |
Wiley Online Library |
op_collection_id |
crwiley |
language |
English |
description |
Abstract Diet analysis integrates a wide variety of visual, chemical, and biological identification of prey. Samples are often treated as compositional data, where each prey is analyzed as a continuous percentage of the total. However, analyzing compositional data results in analytical challenges, for example, highly parameterized models or prior transformation of data. Here, we present a novel approximation involving a Tweedie generalized linear model (GLM). We first review how this approximation emerges from considering predator foraging as a thinned and marked point process (with marks representing prey species and individual prey size). This derivation can motivate future theoretical and applied developments. We then provide a practical tutorial for the Tweedie GLM using new package mvtweedie that extends capabilities of widely used packages in R ( mgcv and ggplot2 ) by transforming output to calculate prey compositions. We demonstrate this approach and software using two examples. Tufted Puffins ( Fratercula cirrhata ) provisioning their chicks on a colony in the northern Gulf of Alaska show decadal prey switching among sand lance and prowfish (1980–2000) and then Pacific herring and capelin (2000–2020), while wolves ( Canis lupus ligoni ) in southeast Alaska forage on mountain goats and marmots in northern uplands and marine mammals in seaward island coastlines. |
format |
Article in Journal/Newspaper |
author |
Thorson, James T. Arimitsu, Mayumi L. Levi, Taal Roffler, Gretchen H. |
spellingShingle |
Thorson, James T. Arimitsu, Mayumi L. Levi, Taal Roffler, Gretchen H. Diet analysis using generalized linear models derived from foraging processes using R package mvtweedie |
author_facet |
Thorson, James T. Arimitsu, Mayumi L. Levi, Taal Roffler, Gretchen H. |
author_sort |
Thorson, James T. |
title |
Diet analysis using generalized linear models derived from foraging processes using R package mvtweedie |
title_short |
Diet analysis using generalized linear models derived from foraging processes using R package mvtweedie |
title_full |
Diet analysis using generalized linear models derived from foraging processes using R package mvtweedie |
title_fullStr |
Diet analysis using generalized linear models derived from foraging processes using R package mvtweedie |
title_full_unstemmed |
Diet analysis using generalized linear models derived from foraging processes using R package mvtweedie |
title_sort |
diet analysis using generalized linear models derived from foraging processes using r package mvtweedie |
publisher |
Wiley |
publishDate |
2022 |
url |
http://dx.doi.org/10.1002/ecy.3637 https://onlinelibrary.wiley.com/doi/pdf/10.1002/ecy.3637 https://onlinelibrary.wiley.com/doi/full-xml/10.1002/ecy.3637 https://esajournals.onlinelibrary.wiley.com/doi/pdf/10.1002/ecy.3637 |
genre |
Canis lupus fratercula Alaska |
genre_facet |
Canis lupus fratercula Alaska |
op_source |
Ecology volume 103, issue 5 ISSN 0012-9658 1939-9170 |
op_rights |
http://creativecommons.org/licenses/by/4.0/ |
op_doi |
https://doi.org/10.1002/ecy.3637 |
container_title |
Ecology |
container_volume |
103 |
container_issue |
5 |
_version_ |
1810438466171830272 |