Learn R Programming

jcp (version 1.2)

summary.jcp: summary.jcp

Description

Summary method for class 'jcp'

Usage

# S3 method for jcp
summary(object, ...)

Arguments

object

object of class jcp

...

additional arguments

Value

No return value, called for side effects

References

Michael Messer (2021) Bivariate change point detection - joint detection of changes in expectation and variance, Scandinavian Journal of Statistics, DOI 10.1111/sjos.12547.

See Also

jcp, plot.jcp

Examples

Run this code
# NOT RUN {
#' # Normal distributed sequence with 3 change points at
# c1=250 (change in expectation), 
# c2=500 (change in variance) and 
# c3=750 (change in expectation and variance) 
set.seed(0)
m      <- c(8,10,10,3);   s  <- c(4,4,10,5)
x      <- rnorm(1000, mean=rep(m,each=250), sd=rep(s,each=250))
result <- jcp(x)
plot(result)
summary(result)

# Set additional parameters (window set)
result2 <- jcp(x,H=c(80,160,240))
plot(result2)
summary(result2)

# }

Run the code above in your browser using DataLab