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.
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.