PELT: Most recent changepoints from AGG method.

Description Usage Arguments Value Examples

View source: R/id1.R View source: R/indma(PELT).R View source: R/ind(PELT).R View source: R/aut(mrc).R View source: R/aut1(mrc).R

Description

Detecting most recent changepoints from AGG method (detect changepoint in univariate time series). We use PELT for segmenting a time series into changing means, assuming normally distributed observations with changing mean but constant variance.

Usage

1
PELT(data, pen)

Arguments

data

a censored data matrix. And then we add this data matrix column wise and resulting data use as first argument in PELT function.

pen

(penalty term) default 200*log(dim(data)[2]. Here dim(data)[2] means length of series (n).

Value

indicates the most recent changepoint in each series .

Examples

1
2
3
4
5
6
7
8
9
#example
library(cpcens)
data("censoredex")
data=censoredex
n=144
N=100
agg = apply( data , 2 , sum )
pagg = PELT( agg , 200*log(dim(data)[2]) )
agg.chpts = rep( rev( pagg$cpts )[1] , N )

cpcens documentation built on Aug. 2, 2019, 5:05 p.m.

Related to PELT in cpcens...