summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Brown <ecbrown@ericcbrown.com>2020-04-19 14:07:27 -0500
committerRicardo Wurmus <rekado@elephly.net>2020-04-20 15:11:08 +0200
commite68c8d3ef8d59b8c81fedd8fe9ea38f51cb9437a (patch)
tree41da9b2789f09a5324ea1429d302cd3edfaab7ff
parent10af34cd7f1f4f9fb50db826d06233c83a9c0439 (diff)
gnu: Add r-bridgesampling.
* gnu/packages/cran.scm (r-bridgesampling): New variable. Signed-off-by: Ricardo Wurmus <rekado@elephly.net>
-rw-r--r--gnu/packages/cran.scm33
1 files changed, 32 insertions, 1 deletions
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 757f809941..70cb7cc700 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -14,13 +14,13 @@
;;; Copyright © 2018 Laura Lazzati <laura.lazzati.15@gmail.com>
;;; Copyright © 2018 Leo Famulari <leo@famulari.name>
;;; Copyright © 2018 Marius Bakke <mbakke@fastmail.com>
-;;; Copyright © 2018 Eric Brown <brown@fastmail.com>
;;; Copyright © 2018, 2019 Brett Gilio <brettg@gnu.org>
;;; Copyright © 2019 Nicolò Balzarotti <anothersms@gmail.com>
;;; Copyright © 2019 Wiktor Żelazny <wzelazny@vurv.cz>
;;; Copyright © 2020 Todor Kondić <tk.code@protonmail.com>
;;; Copyright © 2020 Danjela Lura <danielaluraa@gmail.com>
;;; Copyright © 2020 Naga Malleswari <nagamalli@riseup.net>
+;;; Copyright © 2020 Eric Brown <ecbrown@ericcbrown.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -21131,3 +21131,34 @@ vignettes from notebooks. Those notebooks (@code{.ipynb} files) are files
containing rich text, code, and its output. Code cells can be edited and
evaluated interactively.")
(license license:gpl3)))
+
+(define-public r-bridgesampling
+ (package
+ (name "r-bridgesampling")
+ (version "1.0-0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (cran-uri "bridgesampling" version))
+ (sha256
+ (base32
+ "1awhvv0v42w2q6llqi1wqpaiv5zx74cqzigdsvphy2jfp8ajw64y"))))
+ (properties
+ `((upstream-name . "bridgesampling")))
+ (build-system r-build-system)
+ (propagated-inputs
+ `(("r-brobdingnag" ,r-brobdingnag)
+ ("r-coda" ,r-coda)
+ ("r-matrix" ,r-matrix)
+ ("r-mvtnorm" ,r-mvtnorm)
+ ("r-scales" ,r-scales)
+ ("r-stringr" ,r-stringr)))
+ (native-inputs
+ `(("r-knitr" ,r-knitr)))
+ (home-page "https://github.com/quentingronau/bridgesampling")
+ (synopsis "Bridge sampling for marginal likelihoods and Bayes factors")
+ (description
+ "This package provides functions for estimating marginal likelihoods,
+Bayes factors, posterior model probabilities, and normalizing constants in
+general, via different versions of bridge sampling.")
+ (license license:gpl2+)))