Learn R Programming

nsp (version 1.0.0)

Inference for Multiple Change-Points in Linear Models

Description

Implementation of Narrowest Significance Pursuit, a general and flexible methodology for automatically detecting localised regions in data sequences which each must contain a change-point (understood as an abrupt change in the parameters of an underlying linear model), at a prescribed global significance level. Narrowest Significance Pursuit works with a wide range of distributional assumptions on the errors, and yields exact desired finite-sample coverage probabilities, regardless of the form or number of the covariates. For details, see P. Fryzlewicz (2021) .

Copy Link

Version

Install

install.packages('nsp')

Monthly Downloads

179

Version

1.0.0

License

GPL (>= 3)

Maintainer

Piotr Fryzlewicz

Last Published

December 21st, 2021

Functions in nsp (1.0.0)

cov_dep_multi_norm_poly

Simulate covariate-dependent multiscale sup-norm for use in NSP, for piecewise-polynomial models
draw_rects_advanced

Plot NSP intervals of significance at appropriate places along the graph of data
nsp_poly_selfnorm

Self-normalised Narrowest Significance Pursuit algorithm for piecewise-polynomial signals
nsp_poly

Narrowest Significance Pursuit algorithm for piecewise-polynomial signals
nsp_poly_ar

Narrowest Significance Pursuit algorithm for piecewise-polynomial signals with autoregression
cpt_importance

Change-point importance (prominence) plot
cov_dep_multi_norm

Simulate covariate-dependent multiscale sup-norm for use in NSP
nsp

Narrowest Significance Pursuit algorithm with general covariates and user-specified threshold
nsp-package

nsp: Narrowest Significance Pursuit: Inference for Multiple Change-points in Linear Models
draw_rects

Draw NSP intervals of significance as shaded rectangular areas on the current plot
sim_max_holder

Simulate Holder-like norm of the Wiener process for use in self-normalised NSP
nsp_tvreg

Narrowest Significance Pursuit algorithm with general covariates
nsp_selfnorm

Self-normalised Narrowest Significance Pursuit algorithm with general covariates and user-specified threshold
thresh_kab

Compute the theoretical threshold for the multiscale sup-norm if the underlying distribution is standard normal