model_cpts: Fit a glm model model with an arbitrary number of...

View source: R/cpts_model.R

model_cptsR Documentation

Fit a glm model model with an arbitrary number of changepoints. Applies binary segmentation to obtain changepoints that approximately maximize likelihood.

Description

Fit a glm model model with an arbitrary number of changepoints. Applies binary segmentation to obtain changepoints that approximately maximize likelihood.

Usage

model_cpts(
  bdat,
  min_len = 10,
  alpha = 0.05,
  multiplicity = "BH",
  boot_iter = 10^3
)

Arguments

bdat

Dataframe with time and count.

min_len

Minimum time length 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.

Value

List of glm objects collectively representing multiple-changepoint model.


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