sample_post_t_jef_marg_Psi {BayesMultMeta}R Documentation

Metropolis-Hastings algorithm for the t-distribution and the Jeffreys prior, where Ψ\mathbf{\Psi} is generated from the marginal posterior.

Description

This function implements Metropolis-Hastings algorithm for drawing samples from the posterior distribution of μ\mathbf{\mu} and Ψ\mathbf{\Psi} under the assumption of the t-distribution when the Jeffreys prior is employed. At each step, the algorithm starts with generating a draw from the marginal distribution of Ψ\mathbf{\Psi}.

Usage

sample_post_t_jef_marg_Psi(X, U, d, Np)

Arguments

X

A p×np \times n matrix which contains nn observation vectors of dimension pp.

U

A pn×pnp n \times p n block-diagonal matrix which contains the covariance matrices of observation vectors.

d

Degrees of freedom for the t-distribution

Np

Length of the generated Markov chain.

Value

List with the generated samples from the joint posterior distribution of μ\mathbf{\mu} and Ψ\mathbf{\Psi}, where the values of Ψ\mathbf{\Psi} are presented by using the vec operator.


[Package BayesMultMeta version 0.1.1 Index]