Learn R Programming

breakfast (version 2.5)

print.breakfast.cpts: Change-points estimated by the "breakfast" routine

Description

Print method for objects of class breakfast.cpts

Usage

# S3 method for breakfast.cpts
print(x, by = c("method", "estimator"), ...)

Arguments

x

a breakfast.cpts object

by

if by = 'method', change-point estimators are printed by method; if by = 'estimator', each change-point estimator is printed with the methods that detect it.

...

current not in use

Examples

Run this code
f <- rep(rep(c(0, 1), each = 50), 5)
x <- f + rnorm(length(f)) * .5
print(breakfast(x, solution.path = 'all', model.selection = 'all'), by = 'method')
print(breakfast(x), by = 'estimator')

Run the code above in your browser using DataLab