Learn R Programming

SALTSampler (version 1.1.0)

Efficient Sampling on the Simplex

Description

The SALTSampler package facilitates Monte Carlo Markov Chain (MCMC) sampling of random variables on a simplex. A Self-Adjusting Logit Transform (SALT) proposal is used so that sampling is still efficient even in difficult cases, such as those in high dimensions or with parameters that differ by orders of magnitude. Special care is also taken to maintain accuracy even when some coordinates approach 0 or 1 numerically. Diagnostic and graphic functions are included in the package, enabling easy assessment of the convergence and mixing of the chain within the constrained space.

Copy Link

Version

Install

install.packages('SALTSampler')

Monthly Downloads

155

Version

1.1.0

License

BSD_3_clause + file LICENSE

Maintainer

Scott Vander Wiel

Last Published

August 10th, 2017

Functions in SALTSampler (1.1.0)

LogitScale

Finds logit(sp)
LogitSum

Log of the Sum of Probabilities
PropStep

Draw a Proposal on a Simplex
RunMh

Metropolis Hasting Algorithm Constrained on a Simplex
LogPq

Computes \(log(p)\) and \(log(1-p)\)
Logit

Logit of a Probability Vector
Diagnostics

Plots and Summaries of RunMh Output
GenData

Synthetic Data From a Multinomial Distribution
SALTSampler-package

Efficient Sampling on the Simplex
TriPlot

Plots MCMC Samples on a 3-Simplex