aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/cran.scm
diff options
context:
space:
mode:
authorMădălin Ionel Patrașcu <madalinionel.patrascu@mdc-berlin.de>2023-03-01 08:23:38 +0100
committerRicardo Wurmus <rekado@elephly.net>2023-03-02 00:08:11 +0100
commitb9be025b0ed50aa363d1955d43ccb76b3f48df4e (patch)
tree1ce12624cc159c0393d4f378ff15ed4e1100b90f /gnu/packages/cran.scm
parent242c3e9300a8e3263c1c9733d4bb79dbddc77767 (diff)
downloadguix-b9be025b0ed50aa363d1955d43ccb76b3f48df4e.tar
guix-b9be025b0ed50aa363d1955d43ccb76b3f48df4e.tar.gz
gnu: Add r-cplm.
* gnu/packages/cran.scm (r-cplm): New variable.
Diffstat (limited to 'gnu/packages/cran.scm')
-rw-r--r--gnu/packages/cran.scm35
1 files changed, 35 insertions, 0 deletions
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 147af98836..97add3e81e 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -325,6 +325,41 @@ are included as well.")
queues, stacks, deques, dicts and ordered dicts.")
(license license:expat)))
+(define-public r-cplm
+ (package
+ (name "r-cplm")
+ (version "0.7-10")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (cran-uri "cplm" version))
+ (sha256
+ (base32 "0mqjk10265hq9bc5ihmgbx1l8fzay1gpdlvx3pirqmvr3w1kwlxk"))))
+ (properties `((upstream-name . "cplm")))
+ (build-system r-build-system)
+ (propagated-inputs
+ (list r-biglm
+ r-coda
+ r-ggplot2
+ r-matrix
+ r-minqa
+ r-nlme
+ r-reshape2
+ r-statmod
+ r-tweedie))
+ (home-page "https://github.com/actuaryzhang/cplm")
+ (synopsis "Compound Poisson linear models")
+ (description "The Tweedie compound Poisson distribution is a mixture of a
+degenerate distribution at the origin and a continuous distribution on the
+positive real line. It has been applied in a wide range of fields in which
+continuous data with exact zeros regularly arise. The cplm package provides
+likelihood based and Bayesian procedures for fitting common Tweedie compound
+Poisson linear models. In particular, models with hierarchical structures or
+extra zero inflation can be handled. Further, the package implements the Gini
+index based on an ordered version of the Lorenz curve as a robust model
+comparison tool involving zero-inflated and highly skewed distributions.")
+ (license license:gpl2+)))
+
(define-public r-curry
(package
(name "r-curry")