mniw: The Matrix-Normal Inverse-Wishart Distribution

Density evaluation and random number generation for the Matrix-Normal Inverse-Wishart (MNIW) distribution, as well as the the Matrix-Normal, Matrix-T, Wishart, and Inverse-Wishart distributions. Core calculations are implemented in a portable (header-only) C++ library, with matrix manipulations using the 'Eigen' library for linear algebra. Also provided is a Gibbs sampler for Bayesian inference on a random-effects model with multivariate normal observations.

Version: 1.0.1
Depends: R (≥ 2.10)
Imports: Rcpp (≥ 0.11.6)
LinkingTo: Rcpp, RcppEigen
Suggests: testthat, knitr, rmarkdown
Published: 2022-08-22
DOI: 10.32614/CRAN.package.mniw
Author: Martin Lysy [aut, cre], Bryan Yates [aut]
Maintainer: Martin Lysy <mlysy at>
License: GPL-3
NeedsCompilation: yes
In views: Distributions
CRAN checks: mniw results


Reference manual: mniw.pdf
Vignettes: Distributions provided by mniw


Package source: mniw_1.0.1.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): mniw_1.0.1.tgz, r-oldrel (arm64): mniw_1.0.1.tgz, r-release (x86_64): mniw_1.0.1.tgz, r-oldrel (x86_64): mniw_1.0.1.tgz
Old sources: mniw archive

Reverse dependencies:

Reverse imports: jtdm, tip
Reverse suggests: LMN


Please use the canonical form to link to this page.