Learn R Programming

changepoint.mv (version 1.0.2)

cpts.mr: Most recent changepoint locations.

Description

Returns a list of vectors containing the most recent changepoint locations.

Usage

# S4 method for changepoint.mv.mrc.class
cpts.mr(x, p = x@pmax)

Arguments

x

An S4 object as returned by mrc.

p

The number of most recent changepoints locations to be considered. Default value is p=x@pmax where pmax is the value specified when mrc was called.

Value

A data frame containing the most recent changepoint locations and the the variates corresponding to those locations.

Examples

Run this code
# NOT RUN {
library(changepoint.mv)
data(mrcexample)
res<-mrc(mrcexample)
cpts.mr(res)
cpts.mr(res,p=2)

# }

Run the code above in your browser using DataLab