R/plot_ClaDS_chains.R

Defines functions plot_ClaDS_chains

Documented in plot_ClaDS_chains

plot_ClaDS_chains = function(sampler,burn=1/2,thin=1,param=c("sigma","alpha","mu","LP")){
  nR=nrow(sampler$chains[[1]])
  npar=ncol(sampler$chains[[1]])-2
  rows =seq(max(1,floor(nR*(burn))),nR,by = thin)
  plot(mcmc.list(lapply(sampler$chains,function(x){mcmc(x[rows,param])})))
}

Try the RPANDA package in your browser

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

RPANDA documentation built on May 29, 2024, 11:17 a.m.