View source: R/all_diagnostics.R
lpdtrace | R Documentation |
Trace and autocorrelation plots of log posterior density or log likelihood from an angmcmc object
lpdtrace( object, chain.no, use.llik = FALSE, plot.autocor = FALSE, lag.max = NULL, ... )
object |
angular MCMC object. |
chain.no |
vector of chain numbers whose samples are to be be used. in the estimation. By default all chains are used. |
use.llik |
logical. Should log likelihood be plotted instead of log posterior? Set
to |
plot.autocor |
logical. Should the autocorrelations be plotted as well? |
lag.max |
maximum lag for autocorrelation. Passed to acf. Ignored if
|
... |
unused |
# first fit a vmsin mixture model # illustration only - more iterations needed for convergence fit.vmsin.20 <- fit_vmsinmix(tim8, ncomp = 3, n.iter = 20, n.chains = 1) # log posterior density trace lpdtrace(fit.vmsin.20) # log likelihood trace lpdtrace(fit.vmsin.20, use.llik = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.