plotautocor: Computing and Plotting Autocorrelation Functions

Description Usage Arguments Author(s) Examples

View source: R/plotautocor.R

Description

Computes and plot autocorrelation functions for samples obtained with MCMC in BayesX

Usage

1
plotautocor(data, ask = TRUE, lag.max=100, ...)

Arguments

data

Either the name of a file or a data frame containing the sample.

ask

plotautocor will plot separate autocorrelation functions for each parameter. If ask=TRUE, the user will be prompted before showing the next plot.

lag.max

Maximum number of lags to be considered.

...

Further parameters to be passed to the internal call of plot such as ylim, etc.

Author(s)

Felix Heinzl, Thomas Kneib

Examples

1
2
3
4
res <- read.table(system.file("examples/nonparametric_f_x_pspline_sample.raw", 
                              package="BayesX"), header=TRUE)
plotautocor(res)
plotautocor(res, lag.max=50)

Example output

Loading required package: shapefiles
Loading required package: foreign

Attaching package: 'shapefiles'

The following objects are masked from 'package:foreign':

    read.dbf, write.dbf

Note: Function plotsurf depends on akima which has
 a restricted licence that explicitly forbids commercial use.
 akima is therefore disabled by default and may be enabled by
 akimaPermit(). Calling this function includes your agreement to
 akima`s licence restrictions.

BayesX documentation built on Aug. 24, 2019, 9:03 a.m.