cpt_importance: Change-point importance (prominence) plot

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/cpt_importance.R

Description

This function produces a change-point prominence plot based on the NSP object provided. The heights of the bars are arranged in non-decreasing order and correspond directly to the lengths of the NSP intervals of significance. Each bar is labelled as s-e where s (e) is the start (end) of the corresponding NSP interval of significance, respectively. The change-points corresponding to the narrower intervals can be seen as more prominent.

Usage

1
cpt_importance(nsp.obj)

Arguments

nsp.obj

Object returned by one of the nsp* functions.

Details

The NSP algorithm is described in P. Fryzlewicz (2021) "Narrowest Significance Pursuit: inference for multiple change-points in linear models", preprint.

Value

The function does not return a value.

Author(s)

Piotr Fryzlewicz, p.fryzlewicz@lse.ac.uk

See Also

draw_rects, draw_rects_advanced

Examples

1
2
3
4
5
set.seed(1)
f <- c(rep(0, 100), 1:100, rep(101, 100))
x.f <- f + 15 * stats::rnorm(300)
x.f.n <- nsp_poly(x.f, 100, "sim", deg=1)
cpt_importance(x.f.n)

nsp documentation built on Dec. 21, 2021, 9:07 a.m.