plot_mcmc: Plot MCMC Diagnostics of a Bayesian Alignment

plot_mcmcR Documentation

Plot MCMC Diagnostics of a Bayesian Alignment

Description

Plots trace, posterior and mixing diagnostics of the chain stored in the mcmc component of an fdawarp object returned by time_warping_bayes() (pCN) or time_warping_bayes_infHMC(). Plots that need the extra information (extrainfo = TRUE) are drawn only when it is available.

Usage

plot_mcmc(x)

Arguments

x

An object of class fdawarp with an mcmc component.

Details

The plots are:

  • chain diagnostics: trace of \sigma and of the log-likelihood with the burn-in marked, posterior of \sigma with its 95% interval, autocorrelation of \sigma with the effective sample size, running acceptance rate, and proposals and acceptance by pCN step (pCN) or the HMC step size of each function (infHMC);

  • trace of the norm of each function's warping coefficients;

  • posterior template with a 95% credible band;

  • posterior warping functions with 95% credible bands.

Value

Invisibly, x.

Examples

## Not run: 
  out <- time_warping_bayes_infHMC(simu_data$f, simu_data$time)
  plot_mcmc(out)

## End(Not run)

fdasrvf documentation built on Nov. 21, 2026, 1:09 a.m.