From 8067c491d485942b13672564302643e86d79eebb Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Tue, 26 Nov 2024 15:40:03 +0100 Subject: [PATCH] gnu: Add r-betareg. * gnu/packages/cran.scm (r-betareg): New variable. Change-Id: I67839c22e6374dcd9e9f0c12d08770d8103ead6d --- gnu/packages/cran.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm index 3546487247..4d98eaa6b4 100644 --- a/gnu/packages/cran.scm +++ b/gnu/packages/cran.scm @@ -241,6 +241,36 @@ (define-public r-asioheaders M. Kohlhoff, and released under the Boost Software License', Version 1.0.") (license license:boost1.0))) +(define-public r-betareg + (package + (name "r-betareg") + (version "3.2-1") + (source + (origin + (method url-fetch) + (uri (cran-uri "betareg" version)) + (sha256 + (base32 "1izp7nirsziwx8803ckbgwyj4r1vf4ixgx5nlin7d5pkjy13c9mv")))) + (properties `((upstream-name . "betareg"))) + (build-system r-build-system) + ;; Vignettes need r-quarto. + (arguments (list #:test-types '(list "tests"))) + (propagated-inputs (list r-flexmix r-formula r-lmtest r-modeltools + r-sandwich)) + (native-inputs (list r-partykit)) + (home-page "https://topmodels.R-Forge.R-project.org/betareg/") + (synopsis "Beta regression") + (description + "This package implements beta regression for modeling beta-distributed +dependent variables on the open unit interval (0, 1), e.g., rates and +proportions, see Cribari-Neto and Zeileis (2010) . +Moreover, extended-support beta regression models can accommodate dependent +variables with boundary observations at 0 and/or 1. For the classical beta +regression model, alternative specifications are provided: Bias-corrected and +bias-reduced estimation, finite mixture models, and recursive partitioning for +beta regression, see .") + (license (list license:gpl2 license:gpl3)))) + (define-public r-bma (package (name "r-bma")