Learn R Programming

BNSP (version 2.2.3)

mvrm2mcmc: Convert posterior samples from function mvrm into an object of class `mcmc'

Description

Reads in files where the posterior samples were written and creates an object of class `mcmc' so that functions like summary and plot from package coda can be used

Usage

mvrm2mcmc(mvrmObj, labels)

Value

An object of class `mcmc' that holds the samples from the posterior of the selected parameter.

Arguments

mvrmObj

An object of class `mvrm' as created by a call to function mvrm.

labels

The labels of the files to be read in. These can be one or more of: "alpha", "beta", "gamma", "delta", "sigma2", "cbeta", "calpha", "R", "muR", "sigma2R", "nmembers", "nmembersV", "compAlloc", "compAllocV", and "DPconc" and they correspond to the parameters of the model that a call to functions mvrm fits. In addition, "deviance" can be read in. If left unspecified, all files are read in.

Author

Georgios Papageorgiou gpapageo@gmail.com

See Also

mvrm

Examples

Run this code
#see \code{mvrm} example

Run the code above in your browser using DataLab