Skip to content

tmvnsim

Truncated Multivariate Normal Simulation

v1.0-2 · Dec 15, 2016 · GPL-2

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.

Downloads

CRAN

6.9K

Last 30 days

1456th

22.7K

Last 90 days

102.1K

Last year

Trend: -24.5% (30d vs prior 30d)

r2u

71

Last 30 days

190

Last 90 days

586

Last year

Trend: -2.7% (30d vs prior 30d)

r2u: no daily series yet

CRAN Check Status

4 NOTE
9 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang NOTE
r-devel-linux-x86_64-debian-gcc NOTE
r-devel-linux-x86_64-fedora-clang NOTE
r-devel-linux-x86_64-fedora-gcc NOTE
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (4 non-OK)
NOTE r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

Maintainer: ‘Samsiddhi Bhattacharjee <sb1@nibmg.ac.in>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: c(person(given = "Samsiddhi",
                      family = "Bhattacjarjee",
                      role = "aut",
                      email = "sb1@nibmg.ac.in"),
               person(given = "Samsiddhi",
                      family = "Bhattacharjee",
                      role = "cre",
                      email = "sb1@nibmg.ac.in"))
as necessary.
NOTE r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Samsiddhi Bhattacharjee <sb1@nibmg.ac.in>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: c(person(given = "Samsiddhi",
                      family = "Bhattacjarjee",
                      role = "aut",
                      email = "sb1@nibmg.ac.in"),
               person(given = "Samsiddhi",
                      family = "Bhattacharjee",
                      role = "cre",
                      email = "sb1@nibmg.ac.in"))
as necessary.
NOTE r-devel-linux-x86_64-fedora-clang

compiled code

File ‘tmvnsim/libs/tmvnsim.so’:
  Found no calls to: ‘R_registerRoutines’, ‘R_useDynamicSymbols’

It is good practice to register native routines and to disable symbol
search.

See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual.
NOTE r-devel-linux-x86_64-fedora-gcc

compiled code

File ‘tmvnsim/libs/tmvnsim.so’:
  Found no calls to: ‘R_registerRoutines’, ‘R_useDynamicSymbols’

It is good practice to register native routines and to disable symbol
search.

See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual.

Check History

NOTE 10 OK · 4 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

Maintainer: ‘Samsiddhi Bhattacharjee <sb1@nibmg.ac.in>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: c(person(given = "Samsiddhi",
                      family = "Bhattacjarjee",
                      role = "aut",
                      email = "sb1@nibmg.ac.in"),
               person(given = "Samsiddhi",
                      family = "Bhattacharjee",
                      role = "cre",
                      email = "sb1@nibmg.ac.in"))
as necessary.
NOTE r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Samsiddhi Bhattacharjee <sb1@nibmg.ac.in>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: c(person(given = "Samsiddhi",
                      family = "Bhattacjarjee",
                      role = "aut",
                      email = "sb1@nibmg.ac.in"),
               person(given = "Samsiddhi",
                      family = "Bhattacharjee",
                      role = "cre",
                      email = "sb1@nibmg.ac.in"))
as necessary.
NOTE r-devel-linux-x86_64-fedora-clang

compiled code

File ‘tmvnsim/libs/tmvnsim.so’:
  Found no calls to: ‘R_registerRoutines’, ‘R_useDynamicSymbols’

It is good practice to register native routines and to disable symbol
search.

See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual.
NOTE r-devel-linux-x86_64-fedora-gcc

compiled code

File ‘tmvnsim/libs/tmvnsim.so’:
  Found no calls to: ‘R_registerRoutines’, ‘R_useDynamicSymbols’

It is good practice to register native routines and to disable symbol
search.

See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual.

Reverse Dependencies (2)

imports

suggests

Dependency Network

Dependencies Reverse dependencies blavaan lavaanExtra tmvnsim

Version History

4 tracked
new 1.0-2 Mar 10, 2026
updated 1.0-2 ← 1.0-1 diff Dec 14, 2016
updated 1.0-1 ← 1.0-0 diff Sep 16, 2015
new 1.0-0 Aug 18, 2015