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]
All associated links for this package
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 21 Nov. 2024.
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
Get rewarded with contribution points by helping add
Reviews / comments / questions /suggestions ↴↴↴

Today's Hot Picks in Authors and Packages

crossrun  
Joint Distribution of Number of Crossings and Longest Run
Joint distribution of number of crossings and the longest run in a series of independent Bernoulli ...
Download / Learn more Package Citations See dependency  
RcppHNSW  
'Rcpp' Bindings for 'hnswlib', a Library for Approximate Nearest Neighbors
'Hnswlib' is a C++ library for Approximate Nearest Neighbors. This package provides a minimal R int ...
Download / Learn more Package Citations See dependency  
SCBiclust  
Identifies Mean, Variance, and Hierarchically Clustered Biclusters
Identifies a bicluster, a submatrix of the data such that the features and observations within the s ...
Download / Learn more Package Citations See dependency  
deductive  
Data Correction and Imputation Using Deductive Methods
Attempt to repair inconsistencies and missing values in data records by using information from vali ...
Download / Learn more Package Citations See dependency  
r2resize  
In-Text Resize for Images, Tables and Fancy Resize Containers in 'shiny', 'rmarkdown' and 'quarto' Documents
Automatic resizing toolbar for containers, images and tables. Various resizable or expandable contai ...
Download / Learn more Package Citations See dependency  
pkgdepends  
Package Dependency Resolution and Downloads
Find recursive dependencies of 'R' packages from various sources. Solve the dependencies to obtain ...
Download / Learn more Package Citations See dependency  

23,229

R Packages

199,929

Dependencies

62,984

Author Associations

23,230

Publication Badges

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