R/print.chow.R

Defines functions print.chow

#' @export

print.chow <- function(x, ...){

  TestMatrix <-  matrix(c(round(x$lambda_bp, 2),
                          round(x$testcrit_bp, 2),
                          round(x$p.value_bp, 2),
                          round(x$lambda_sp, 2),
                          round(x$testcrit_sp, 2),
                          round(x$p.value_sp, 2)),
                        ncol = 2, nrow = 3)
  colnames(TestMatrix) <- c("Break-point Test:", "      Sample-split test:")
  rownames(TestMatrix) <- c("Test statistic", "95% critical value", "p-value")
  cat("\n")
  printCoefmat(TestMatrix)

}

Try the svars package in your browser

Any scripts or data that you put into this service are public.

svars documentation built on Feb. 16, 2023, 7:52 p.m.