summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Johnson <glenn-johnson@uiowa.edu>2021-04-20 04:08:17 -0500
committerGitHub <noreply@github.com>2021-04-20 11:08:17 +0200
commitf1acdf5f88abbe1912034917c42ea40a809ef1c7 (patch)
treee9812bcedf6a6a69426f4aede6f510829e9d9a85
parent173954e568303c2675b60778b5944abce65dabea (diff)
downloadspack-f1acdf5f88abbe1912034917c42ea40a809ef1c7.tar.gz
spack-f1acdf5f88abbe1912034917c42ea40a809ef1c7.tar.bz2
spack-f1acdf5f88abbe1912034917c42ea40a809ef1c7.tar.xz
spack-f1acdf5f88abbe1912034917c42ea40a809ef1c7.zip
r-bridgesampling: new package (#23116)
-rw-r--r--var/spack/repos/builtin/packages/r-bridgesampling/package.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/r-bridgesampling/package.py b/var/spack/repos/builtin/packages/r-bridgesampling/package.py
new file mode 100644
index 0000000000..f6a0002589
--- /dev/null
+++ b/var/spack/repos/builtin/packages/r-bridgesampling/package.py
@@ -0,0 +1,29 @@
+# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class RBridgesampling(RPackage):
+ """Bridge Sampling for Marginal Likelihoods and Bayes Factors:
+
+ Provides functions for estimating marginal likelihoods, Bayes factors,
+ posterior model probabilities, and normalizing constants in general, via
+ different versions of bridge sampling (Meng & Wong, 1996,
+ <http://www3.stat.sinica.edu.tw/statistica/j6n4/j6n43/j6n43.htm>). Gronau,
+ Singmann, & Wagenmakers (2020) <doi:10.18637/jss.v092.i10>."""
+
+ homepage = "https://github.com/quentingronau/bridgesampling"
+ cran = "bridgesampling"
+
+ version('1.1-2', sha256='54ecd39aa2e36d4d521d3d36425f9fe56a3f8547df6048c814c5931d790f3e6b')
+
+ depends_on('r@3.0.0:', type=('build', 'run'))
+ depends_on('r-mvtnorm', type=('build', 'run'))
+ depends_on('r-matrix', type=('build', 'run'))
+ depends_on('r-brobdingnag', type=('build', 'run'))
+ depends_on('r-stringr', type=('build', 'run'))
+ depends_on('r-coda', type=('build', 'run'))
+ depends_on('r-scales', type=('build', 'run'))