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:
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')) |
This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.
Last updated 2 years agofrom:766b6821a9. Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Dec 08 2024 |
R-4.5-win | OK | Dec 08 2024 |
R-4.5-linux | OK | Dec 08 2024 |
R-4.4-win | OK | Dec 08 2024 |
R-4.4-mac | OK | Dec 08 2024 |
R-4.3-win | OK | Dec 08 2024 |
R-4.3-mac | OK | Dec 08 2024 |
Exports:esssnssns.check.logdensitysns.check.partsns.fghEval.numaugsns.make.partsns.run
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Effective Sample Size Calculator | ess |
Plotting "sns" Objects | plot.sns |
Sample-based prediction using "sns" Objects | predict.sns print.summary.predict.sns summary.predict.sns |
Stochastic Newton Sampler (SNS) | sns |
Utility function for validating log-density | print.sns.check.logdensity sns.check.logdensity |
Utility function for augmentation of a log-density function with numerical gradient and Hessian as needed | sns.fghEval.numaug |
Utility Functions for Creating and Validating State Space Partitions | sns.check.part sns.make.part |
Drawing multiple samples using Stochastic Newton Sampler | sns.run |
Summarizing "sns" Objects | print.summary.sns summary.sns |