model_birds_cpts | R Documentation |
Build changepoint models and plots for multiple species. Convenient wrapper for applying to multiple species at once. Modeling driven by model_cpts and plotting done by plot_cpts_model.
model_birds_cpts( dat, min_len = 10, alpha = 0.05, multiplicity = "BH", boot_iter = 10^3, robust_se = FALSE, verbose = TRUE )
dat |
Dataframe with time and count. |
min_len |
Minimum time length (data points) to model changepoints. |
alpha |
Specify level at which to control FWE or FDR. |
multiplicity |
Specify form of multiplicity control. One of "none", "bonferroni", "BH" (equivalently, "FDR"), "BY". Defaults to "BH" |
boot_iter |
Number of bootstrap iterations for changepoint selection statistic. |
robust_se |
Flag for including HAC robust standard errors from package 'sandwich' in plots. |
verbose |
Flag for printing timing and progress updates. |
A tibble with species_code (char), models (list of list of negbin objects), paths (list of path lists), fit_plots, resid_plots, and unexp_plots (all lists of ggplots)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.