BSD Ports

math/R-tmvnsim 1.0.2 NetBSD

Truncated Multivariate Normal Simulation

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
License
gnu-gpl-v2
Categories
math, r
Package size
21.7 KiB, 29.0 KiB installed

Description

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.

Install

Binary package:

pkgin install R-tmvnsim

From pkgsrc:

cd /usr/pkgsrc/math/R-tmvnsim && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_641.0.2
NetBSD 10.1 aarch641.0.2
SmartOS / illumos x86_641.0.2
macOS 15 arm641.0.2

Dependencies

Run dependencies 2
Required by 1