Learn R Programming

tmvmixnorm (version 1.1.1)

Sampling from Truncated Multivariate Normal and t Distributions

Description

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) 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) illustrated the superior performance in terms of various criteria (e.g. mixing and integrated auto-correlation time).

Copy Link

Version

Install

install.packages('tmvmixnorm')

Monthly Downloads

193

Version

1.1.1

License

GPL-2

Maintainer

Ting Fung (Ralph) Ma

Last Published

September 18th, 2020

Functions in tmvmixnorm (1.1.1)

dtuvn

Density function of truncated univariate normal distribution
exp_acc_opt

Acceptance rate of translated-exponential rejection sampling
unif_rej

Uniform rejection sampling
halfnorm_rej

Half-normal rejection sampling
imp_acc

Acceptance rate of truncated univariate normal distribution rejection sampling
norm_acc

Acceptance rate of normal rejection sampling
imp

Rejection sampling of standardized truncated univariate normal distribution
rtmvn

Random number generation for truncated multivariate normal distribution subject to linear inequality constraints
rtmvt

Random number generation for truncated multivariate Student's t distribution subject to linear inequality constraints
exp_rej

Translated-exponential rejection sampling
halfnorm_acc

Acceptance rate of half-normal rejection sampling
norm_rej

Normal rejection sampling
ptuvn

Distribution function of truncated univariate normal distribution
rtuvn

Random number generation for truncated univariate normal distribution
unif_acc

Acceptance rate of uniform rejection sampling