Skip to main content

Evidence for a growing population of eastern migratory monarch butterflies is currently insufficient: changepoint analysis R code

Citation

Thogmartin, Wayne, and Emily Weiser. 2020. R code for Evidence for a growing population of eastern migratory monarch butterflies is currently insufficient. U.S. Geological Survey code release, https://doi.org/10.5066/P94OWFSM

Summary

This R code conducts the main changepoint analyses described in the manuscript titled “Evidence for a growing population of eastern migratory monarch butterflies is currently insufficient”, authored by W. E. Thogmartin, J. A. Szymanski, and E. L. Weiser. The code calculates step and segmented changepoints, checks model assumptions for fitted models, calculates the probability of a >=6.05 ha population given a mean expected population of 3.2 ha, calculates the number of additional years required to provide for a statistically significant trend in the event that the current data are not significant, and calculates the probability of continued increase.

Contacts

Point of Contact :
Wayne E Thogmartin
Originator :
Wayne E Thogmartin, Emily L Weiser

Attached Files

Click on title to download individual files attached to this item.

changepoint readme.txt 2.17 KB text/plain
changepoint.R 15.82 KB text/x-rsrc

Communities

  • Upper Midwest Environmental Sciences Center (UMESC)

Provenance

Data source
Input directly

Item Actions

View Item as ...

Save Item as ...

View Item...