Samples from a marginal posterior multivariate t-distribution with normal-inverse-chi-squared-prior are generated.
Arguments
- object
Observed object, as
matrix.- lambda
Scaling parameter (\(\lambda\)) of the normal-inverse-chi-squared-prior.
- sigma
Square root of the \(\sigma_{0}^{2}\) parameter of the normal-inverse-chi-squared-prior.
- nu0
Degrees of freedom (\(\nu_{0}\)) of the normal-inverse-chi-square-prior.
- ns
Number of samples that should be generated.
Value
A list containing the following elements:
sample Samples of the marginal posterior of the input.
mu Mean of the marginal posterior of the input.
Details
An eigenvalue decomposition is used for sampling. To speed up computations,
a 2D discrete cosine transform (DCT) has been implemented, see dctMatrix.
The output is a list containing
Samples of the marginal posterior of the input as column vectors.
The mean of the marginal posterior of the input as a vector.