Learn R Programming

BNSP (version 2.0.2)

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)

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", and they correspond to the parameters of the model that a call to functions mvrm fits.

Value

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

See Also

mvrm

Examples

Run this code
# NOT RUN {
#see \code{mvrm} example
# }

Run the code above in your browser using DataLab