model_birds_cpts: Build changepoint models and plots for multiple species....

View source: R/cpts_model.R

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

Description

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.

Usage

model_birds_cpts(
  dat,
  min_len = 10,
  alpha = 0.05,
  multiplicity = "BH",
  boot_iter = 10^3,
  robust_se = FALSE,
  verbose = TRUE
)

Arguments

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.

Value

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)


BibelnieksDFW/BrBS documentation built on April 20, 2022, 12:54 a.m.