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 Oct. 20, 2023, 9:11 a.m.