Other packages > Find by keyword >

sns  

Stochastic Newton Sampler (SNS)
View on CRAN: Click here


Download and install sns package within the R console
Install from CRAN:
install.packages("sns")

Install from Github:
library("remotes")
install_github("cran/sns")

Install by package version:
library("remotes")
install_version("sns", "1.2.2")



Attach the package and use:
library("sns")
Maintained by
Alireza Mahani
[Scholar Profile | Author Map]
First Published: 2014-08-25
Latest Update: 2022-11-02
Description:
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/>.
How to cite:
Alireza Mahani (2014). sns: Stochastic Newton Sampler (SNS). R package version 1.2.2, https://cran.r-project.org/web/packages/sns. Accessed 29 Mar. 2025.
Previous versions and publish date:
0.9.1 (2014-08-29 22:47), 0.9 (2014-08-25 22:26), 1.0.0 (2015-02-08 00:33), 1.1.0 (2015-07-29 10:44), 1.1.1 (2016-09-08 07:33), 1.1.2 (2016-10-25 10:31)
Other packages that cited sns R package
View sns citation profile
Other R packages that sns depends, imports, suggests or enhances
Complete documentation for sns
Functions, R codes and Examples using the sns R package
Some associated functions: ess . plot.sns . predict.sns . sns.check.logdensity . sns.fghEval.numaug . sns . sns.part . sns.run . summary.sns . 
Some associated R codes: ess.R . sns.R . sns.methods.R . zzz.R .  Full sns package functions and examples
Downloads during the last 30 days
02/2702/2803/0103/0203/0303/0403/0503/0603/0703/0803/0903/1003/1103/1203/1303/1403/1503/1603/1703/1803/1903/2003/2103/2203/2303/2403/2503/2603/27Downloads for sns024681012141618TrendBars

Today's Hot Picks in Authors and Packages

gglgbtq  
Show Pride on 'ggplot2' Plots
Provides multiple palettes based on pride flags with tailored themes. ...
Download / Learn more Package Citations See dependency  
landmix  
Landmark Prediction for Mixture Data
Non-parametric prediction of survival outcomes for mixture data that incorporates covariates and a l ...
Download / Learn more Package Citations See dependency  
quickcode  
Quick and Essential 'R' Tricks for Better Scripts
The NOT functions, 'R' tricks and a compilation of some simple quick plus often used 'R' codes to im ...
Download / Learn more Package Citations See dependency  

23,842

R Packages

207,311

Dependencies

64,420

Author Associations

23,781

Publication Badges

© Copyright since 2022. All right reserved, rpkg.net.  Based in Cambridge, Massachusetts, USA