Generate random samples from the posterior distribution of the following structure:
$$mu,Sigma|m,k,v,S \sim NIW(m,k,v,S)$$
$$x|mu,Sigma \sim Gaussian(mu,Sigma)$$
Where NIW() is the Normal-Inverse-Wishart distribution, Gaussian() is the Gaussian distribution. See ?dNIW
and dGaussian
for the definitions of these distribution.
The model structure and prior parameters are stored in a "GaussianNIW" object.
Posterior distribution is NIW(mu,Sigma|m,k,v,S).