R/print.tvpreg.R

Defines functions print.tvpreg

Documented in print.tvpreg

print.tvpreg <- function(x, ...)
  {
   cat("Models: ")
   cat("y ~ ")
   cat(paste(colnames(x$coef),collapse=" + "))
   cat("\n")
   cat("\n")
   cat("observations: ")
   cat(length(x$y.hat))
   cat("\n")
   cat("\n")
   cat("Regression coefficients from the last period: ")
   cat("\n")
   cat("\n")
   p <- x$coef[nrow(x$coef),,drop=FALSE]
   rownames(p) <- ""
   print(format(round(p,digits=4),scientific=FALSE),quote=FALSE)
   cat("\n")
  }

Try the dynmix package in your browser

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

dynmix documentation built on July 9, 2023, 7:22 p.m.