show-methods: Display the S4 object produced by cpop

showR Documentation

Display the S4 object produced by cpop

Description

Displays an S4 object produced by cpop.

Arguments

object

An instance of an S4 class produced by cpop.

References

\insertRef

cpop-jss-article-2024cpop

Examples

library(cpop)

# simulate data with change in gradient
set.seed(1)
x <- (1:50/5)^2
y <- simchangeslope(x,changepoints=c(10,50),change.slope=c(0.25,-0.25),sd=1)

# determine changepoints
res <- cpop(y,x,beta=2*log(length(y)))

# display a summary of the results using show
show(res)


grosed/cpop documentation built on May 31, 2024, 11:16 a.m.