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 20 Apr. 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
03/2103/2203/2303/2403/2503/2603/2703/2803/2903/3003/3104/0104/0204/0304/0404/0504/0604/0704/0804/0904/1004/1104/1204/1304/1404/1504/1604/1704/1804/19Downloads for sns02468101214161820TrendBars

Today's Hot Picks in Authors and Packages

appler  
'Apple App Store' and 'iTunes' Data Extraction
Using 'Apple App Store' web scraping and 'iTunes' API ...
Download / Learn more Package Citations See dependency  
paramhetero  
Numeric and Visual Comparisons of Heterogeneity in Parametric Models
Performs statistical tests to compare coefficients and residual variance across models. Also provid ...
Download / Learn more Package Citations See dependency  
jsonlite  
A Simple and Robust JSON Parser and Generator for R
A reasonably fast JSON parser and generator, optimized for statistical data and the web. Offers sim ...
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  
japanstat  
Tools for Easy Use of 'e-Stat' API
Provides tools for using the API of 'e-Stat' (), a portal site for Japane ...
Download / Learn more Package Citations See dependency  
negligible  
A Collection of Functions for Negligible Effect/Equivalence Testing
Researchers often want to evaluate whether there is a negligible relationship among variables. The ...
Download / Learn more Package Citations See dependency  

24,098

R Packages

207,311

Dependencies

65,069

Author Associations

24,013

Publication Badges

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