Package: sns 1.2.2

sns: Stochastic Newton Sampler (SNS)

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 <https://cran.r-project.org/src/contrib/Archive/MfUSampler/>.

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

sns_1.2.2.tar.gz
sns_1.2.2.zip(r-4.5)sns_1.2.2.zip(r-4.4)sns_1.2.2.zip(r-4.3)
sns_1.2.2.tgz(r-4.4-any)sns_1.2.2.tgz(r-4.3-any)
sns_1.2.2.tar.gz(r-4.5-noble)sns_1.2.2.tar.gz(r-4.4-noble)
sns_1.2.2.tgz(r-4.4-emscripten)sns_1.2.2.tgz(r-4.3-emscripten)
sns.pdf |sns.html
sns/json (API)

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

Peer review:

On CRAN:

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

3.30 score 1 packages 33 scripts 204 downloads 2 mentions 7 exports 4 dependencies

Last updated 2 years agofrom:766b6821a9. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKDec 08 2024
R-4.5-winOKDec 08 2024
R-4.5-linuxOKDec 08 2024
R-4.4-winOKDec 08 2024
R-4.4-macOKDec 08 2024
R-4.3-winOKDec 08 2024
R-4.3-macOKDec 08 2024

Exports:esssnssns.check.logdensitysns.check.partsns.fghEval.numaugsns.make.partsns.run

Dependencies:codalatticemvtnormnumDeriv

Stochastic Newton Sampler: The R Package sns

Rendered fromSNS.Rnwusingutils::Sweaveon Dec 08 2024.

Last update: 2022-11-02
Started: 2015-01-30