plotACF: Auto-correlation Plot for Latent Variables

Description Usage Arguments Details Value Author(s) Examples

View source: R/postMCMC.R

Description

This function plots auto-correlation curves for latent variables.

Usage

1
plotACF(S.mcmc, lags = NULL)

Arguments

S.mcmc

a matrix (or data.frame) with each row containing the posterior samples of one latent variable

lags

the maximum number of lags; the default "NULL" will result in 10*\log_{10}(N/m) where N is the number of observations and m the number of series

Details

This function uses acf function to compute the estimates of auto-correlation.

Value

No return value. A plot of auto-correlation curves.

Author(s)

Liang Jing ljing918@gmail.com

Examples

1
2
3
4
## Not run: 
plotACF(res.m$S.posterior)

## End(Not run)

geoCount documentation built on May 31, 2017, 3:49 a.m.

Search within the geoCount package
Search all R packages, documentation and source code