Learn R Programming

RegimeChange (version 0.1.1)

pelt: Detect changepoints using PELT algorithm

Description

Wrapper for detect_pelt for compatibility.

Usage

pelt(
  data,
  type = "both",
  penalty = "MBIC",
  min_segment = 2,
  robust = FALSE,
  correct_ar = FALSE,
  merge_close = NULL,
  ...
)

Value

List with changepoints and diagnostics

Arguments

data

Numeric vector or matrix. For matrices, rows are observations.

type

Type of change to detect: "mean", "var", or "both".

penalty

Penalty type ("MBIC", "BIC", "AIC") or numeric value.

min_segment

Minimum segment length (default: 2).

robust

Logical or character. FALSE for standard, TRUE for moderate robustness, or one of "mild", "moderate", "aggressive", "auto" for specific levels.

correct_ar

Logical. Apply pre-whitening for autocorrelated data. Default: FALSE.

merge_close

Integer or NULL. Merge changepoints within this distance. Default: NULL.

...

Additional arguments (currently unused).

See Also

detect_pelt