R/boa.print.acf.R

"boa.print.acf" <-
function(lags = boa.par("acf.lags"))
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
{
   work <- boa.chain("work")
   cat("\n",
       "LAGS AND AUTOCORRELATIONS:\n",
       "==========================\n", sep = "")
   for(i in names(work)) {
      header <- paste("\nChain: ", i, "\n", sep = "")
      cat(header, rep("-", nchar(header) - 2), "\n\n", sep = "")
      print(boa.acf(work[[i]], lags))
      cat("\nPress <ENTER> to continue")
      readline()
   }
   invisible()
}

Try the boa package in your browser

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

boa documentation built on May 1, 2019, 9:12 p.m.