Package: tmvmixnorm 1.1.1

Ting Fung (Ralph) Ma

tmvmixnorm: Sampling from Truncated Multivariate Normal and t Distributions

Efficient sampling of truncated multivariate (scale) mixtures of normals under linear inequality constraints is nontrivial due to the analytically intractable normalizing constant. Meanwhile, traditional methods may subject to numerical issues, especially when the dimension is high and dependence is strong. Algorithms proposed by Li and Ghosh (2015) <doi:10.1080/15598608.2014.996690> are adopted for overcoming difficulties in simulating truncated distributions. Efficient rejection sampling for simulating truncated univariate normal distribution is included in the package, which shows superiority in terms of acceptance rate and numerical stability compared to existing methods and R packages. An efficient function for sampling from truncated multivariate normal distribution subject to convex polytope restriction regions based on Gibbs sampler for conditional truncated univariate distribution is provided. By extending the sampling method, a function for sampling truncated multivariate Student's t distribution is also developed. Moreover, the proposed method and computation remain valid for high dimensional and strong dependence scenarios. Empirical results in Li and Ghosh (2015) <doi:10.1080/15598608.2014.996690> illustrated the superior performance in terms of various criteria (e.g. mixing and integrated auto-correlation time).

Authors:Ting Fung Ma [cre, aut], Sujit K. Ghosh [aut], Yifang Li [aut]

tmvmixnorm_1.1.1.tar.gz
tmvmixnorm_1.1.1.tar.gz(r-4.5-noble)tmvmixnorm_1.1.1.tar.gz(r-4.4-noble)
tmvmixnorm_1.1.1.tgz(r-4.4-emscripten)tmvmixnorm_1.1.1.tgz(r-4.3-emscripten)
tmvmixnorm.pdf |tmvmixnorm.html
tmvmixnorm/json (API)

# Install 'tmvmixnorm' in R:
install.packages('tmvmixnorm', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

15 exports 1.16 score 1 dependencies 4 dependents 17 scripts 386 downloads

Last updated 4 years agofrom:cbb7edbc4b. Checks:OK: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKAug 21 2024
R-4.5-linuxOKAug 21 2024

Exports:dtuvnexp_acc_optexp_rejhalfnorm_acchalfnorm_rejimpimp_accnorm_accnorm_rejptuvnrtmvnrtmvtrtuvnunif_accunif_rej

Dependencies:MASS