CRAN/E | sns

sns

Stochastic Newton Sampler (SNS)

Installation

About

Stochastic Newton Sampler (SNS) is a Metropolis-Hastings-based, Markov Chain Monte Carlo sampler for twice differentiable, log-concave probability density functions (PDFs) where the proposal density function is a multivariate Gaussian resulting from a second-order Taylor-series expansion of log-density around the current point. The mean of the Gaussian proposal is the full Newton-Raphson step from the current point. A Boolean flag allows for switching from SNS to Newton-Raphson optimization (by choosing the mean of proposal function as next point). This can be used during burn-in to get close to the mode of the PDF (which is unique due to concavity). For high-dimensional densities, mixing can be improved via 'state space partitioning' strategy, in which SNS is applied to disjoint subsets of state space, wrapped in a Gibbs cycle. Numerical differentiation is available when analytical expressions for gradient and Hessian are not available. Facilities for validation and numerical differentiation of log-density are provided. Note: Formerly available versions of the MfUSampler can be obtained from the archive .

Citation sns citation info

Key Metrics

Version 1.2.2
Published 2022-11-02 550 days ago
Needs compilation? no
License GPL-2
License GPL-3
CRAN checks sns results

Downloads

Yesterday 4 -43%
Last 7 days 64 -21%
Last 30 days 247 +1%
Last 90 days 695 -29%
Last 365 days 3.166 -21%

Maintainer

Maintainer

Alireza Mahani

alireza.s.mahani@gmail.com

Authors

Alireza S. Mahani
Asad Hasan
Marshall Jiang
Mansour T.A. Sharabiani

Material

ChangeLog
Reference manual
Package source

Vignettes

Stochastic Newton Sampler: The R Package sns

macOS

r-release

arm64

r-oldrel

arm64

r-release

x86_64

r-oldrel

x86_64

Windows

r-devel

x86_64

r-release

x86_64

r-oldrel

x86_64

Old Sources

sns archive

Imports

mvtnorm
coda
numDeriv

Suggests

RegressionFactory
MfUSampler

Reverse Suggests

RegressionFactory