Learn R Programming

tripEstimation (version 0.0-46)

chain.read: Manage MCMC cache.

Description

These functions read and write to cache files for storing long MCMC outputs from model functions, such as solar.model or satellite.model.

Usage

chain.read(filename)
chain.dim(filename)
chain.write(filename, A, append = FALSE)

Value

chain.read returns the actual array of MCMC samples from an archived file

chain.dim reports the dimensions of the archived file

chain.write writes an array of MCMC samples to an archive file

Arguments

filename

cache file for model chain

A

chain array

append

append to existing file or overwrite?

Author

Michael D. Sumner and Simon Wotherspoon

See Also

pimg.list