Learn R Programming

dSTEM (version 2.0-1)

Multiple Testing of Local Extrema for Detection of Change Points

Description

Simultaneously detect the number and locations of change points in piecewise linear models under stationary Gaussian noise allowing autocorrelated random noise. The core idea is to transform the problem of detecting change points into the detection of local extrema (local maxima and local minima)through kernel smoothing and differentiation of the data sequence, see Cheng et al. (2020) . A low-computational and fast algorithm call 'dSTEM' is introduced to detect change points based on the 'STEM' algorithm in D. Cheng and A. Schwartzman (2017) .

Copy Link

Version

Install

install.packages('dSTEM')

Monthly Downloads

169

Version

2.0-1

License

GPL-3

Maintainer

Zhibing He

Last Published

June 21st, 2023

Functions in dSTEM (2.0-1)

Fdr

Compute TPR and FPR
snr

Compute SNR of a certain change point location
smth.gau

Smoothing data using Gaussian kernel
which.peaks

Find local maxima and local minima of data sequence
gen.signal

Generate simulated signals
HST_stock

Stock price of Host & Hotel Resorts (HST)
cp.plt

Plot data sequence, the first and second-order derivatives, and their local extrema
conv

Compute convolution function using FFT
cpTest

Multiple testing of change points for kernel smoothed data
dstem

Detection of change points based on 'dSTEM' algorithm
est.sigma2

Estimate variance of smoothed Gaussian noise
est.pair

Identify pairwise local maxima and local minima of the second-order derivative
est.slope

Estimate piecewise slope for piecewise linear model
fdrBH

Compute FDR threshold based on Benjamini-Hochberg (BH) algorithm