CMD + K

r-tmvnsim

Community

Importance sampling from the truncated multivariate normal using the GHK (Geweke-Hajivassiliou-Keane) 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.

Installation

To install this package, run one of the following:

Conda
$conda install r_test::r-tmvnsim

Usage Tracking

1.0_2
1 / 8 versions selected
Total downloads: 0

About

Summary

Importance sampling from the truncated multivariate normal using the GHK (Geweke-Hajivassiliou-Keane) 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.

Information Last Updated

Apr 22, 2025 at 15:32

License

GPL-2

Total Downloads

6

Platforms

Linux 64 Version: 1.0_2
macOS 64 Version: 1.0_2
Win 64 Version: 1.0_2