Learn R Programming

VARDetect (version 0.1.8)

print.VARDetect.result: Function to print the change points estimated by VARDetect

Description

Print the estimated change points of class VARDetect.result

Usage

# S3 method for VARDetect.result
print(x, ...)

Value

Print the estimated change points

Arguments

x

a VARDetect.result class object

...

not in use

Examples

Run this code
nob <- 1000
p <- 15
brk <- c(floor(nob / 3), floor(2 * nob / 3), nob + 1)
m <- length(brk)
q.t <- 1
try <- simu_var('sparse',nob=nob,k=p,lags=q.t,brk=brk,sp_pattern="off-diagonal",seed=1)
data <- try$series
data <- as.matrix(data)
fit <- tbss(data, method = "sparse", q = q.t)
print(fit)

Run the code above in your browser using DataLab