R/plotautocor.R

Defines functions plotautocor

Documented in plotautocor

plotautocor <- function(data, ask = TRUE, lag.max = 100, ...) {
  if (!is.data.frame(data)) 
    data <- read.table(data, header = TRUE)
  
  data <- data[, -1]
  data.mcmc <- coda::as.mcmc(data)
  
  coda::autocorr.plot(data.mcmc, ask = ask, lag.max = lag.max, ...)
  
  return(invisible())
}

Try the BayesX package in your browser

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

BayesX documentation built on Aug. 24, 2019, 9:03 a.m.