BFF_gaussian_posterior: BFF Change Point Detector using Posterior P-Values for...

View source: R/BFF.R

BFF_gaussian_posteriorR Documentation

BFF Change Point Detector using Posterior P-Values for Gaussian Data

Description

Detects change points within data stream sequentially using a Bayesian adaptive estimation procedure and posterior p-values.

Usage

BFF_gaussian_posterior(
  data,
  threshold_val = c(0.05),
  burnin = 200,
  grace_period = 20,
  sw = 2000,
  alpha = 39,
  beta = 1.8,
  collect_p_val = TRUE
)

Arguments

data

data stream to perform change point detection on

threshold_val

vector of thresholds to use to assess whether new data point is a change point

burnin

the intial period to use to build the model on which no change points are detected

grace_period

period after a change in which changes are not detected

sw

sliding window size for p-value calibration

alpha

alpha parameter for lambda beta prior

beta

beta parameter for lambda beta prior

collect_p_val

whether or not to store p-values, boolean

Value

return the change points detected by the algorithm for each of the dection procedures, for the different thresholds. If collecting p-values then results will contain these.


elizabethriddle/BFF documentation built on April 4, 2022, 11:51 a.m.