r-tmvnsim
Truncated multivariate normal simulation
This package implements importance sampling from the truncated multivariate normal using the Geweke-Hajivassiliou-Keane (GHK) simulator. Unlike Gibbs sampling which can get stuck in one truncation sub-region depending on initial values, this package allows truncation based on disjoint regions that are created by truncation of absolute values. The GHK algorithm uses simple Cholesky transformation followed by recursive simulation of univariate truncated normals hence there are also no convergence issues. Importance sample is returned along with sampling weights, based on which, one can calculate integrals over truncated regions for multivariate normals.
- Versions: 1.0-2
- Website: https://www.r-project.org
- Licenses: GPL 2
- Package source: gnu/packages/statistics.scm
- Builds: See build status
- Issues: See known issues
Installation
Install the latest version of r-tmvnsim
as follows:
guix install r-tmvnsim
Or install a particular version:
guix install r-tmvnsim@1.0-2
You can also install packages in augmented, pure or containerized environments for development or simply to try them out without polluting your user profile. See the guix shell
documentation for more information.
Badge code
You can use the following badge to inform users of r-tmvnsim about the latest version available in Guix.
Example HTML:
<a href='https://packages.guix.gnu.org/packages/r-tmvnsim'><img src='https://packages.guix.gnu.org/packages/r-tmvnsim/badges/latest-version.svg' alt='Version in GNU Guix'></a>
Example Markdown:
[![Version in GNU Guix](https://packages.guix.gnu.org/packages/r-tmvnsim/badges/latest-version.svg)](https://packages.guix.gnu.org/packages/r-tmvnsim)
Example Org:
[[https://packages.guix.gnu.org/packages/r-tmvnsim][https://packages.guix.gnu.org/packages/r-tmvnsim/badges/latest-version.svg]]