Learn R Programming

spTimer (version 0.02)

spT.MCMC.plot: MCMC plots for the posterior samples

Description

This function is used to obtain MCMC trace plots, density plots, auto-correlation plots, partial auto-correlation plots of the posterior samples.

Usage

spT.MCMC.plot(x, nBurn=0, ACF=FALSE, PARTIAL.acf=FALSE)

Arguments

x
The posterior output obtained from spT.Gibbs function.
nBurn
Number of burn-in required.
ACF
Logical value for the auto-correlation function (ACF) plot. Takes TRUE or FALSE.
PARTIAL.acf
Logical value for the partial auto-correlation function (PACF) plot. Takes TRUE or FALSE.

See Also

spT.Gibbs, spT.MCMC.stat.

Examples

Run this code
##

# for GP models
spT.MCMC.plot(post.gp,nBurn=1000)

# for AR models
spT.MCMC.plot(post.ar,nBurn=1000)

# for GPP based models
spT.MCMC.plot(post.gpp,nBurn=1000)

##

Run the code above in your browser using DataLab