From 3312c0c3754f62222dfe67733f8610aa6e7d687a Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Mon, 16 Nov 2020 13:02:28 +0100 Subject: [PATCH 8/9] gnu: Add r-clubsandwich. * gnu/packages/cran.scm (r-clubsandwich): New variable. --- gnu/packages/cran.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm index 4a7c1535f4..0caff23582 100644 --- a/gnu/packages/cran.scm +++ b/gnu/packages/cran.scm @@ -24878,3 +24878,36 @@ diagrams from a lavaan path model without having to write the DOT language graph specification.") (license license:gpl2+))) +(define-public r-clubsandwich + (package + (name "r-clubsandwich") + (version "0.3.2") + (source + (origin + (method url-fetch) + (uri (cran-uri "clubSandwich" version)) + (sha256 + (base32 + "1q4kidxcarlazh9zaav6vdc7ixb3hdg3zh5kr6mwkm087gi05nw5")))) + (properties `((upstream-name . "clubSandwich"))) + (build-system r-build-system) + (propagated-inputs + `(("r-sandwich" ,r-sandwich))) + (native-inputs `(("r-knitr" ,r-knitr))) + (home-page "https://github.com/jepusto/clubSandwich") + (synopsis "Cluster-Robust (Sandwich) Variance Estimators with Small-Sample +Corrections") + (description + "Provides several cluster-robust variance estimators (i.e., sandwich +estimators) for ordinary and weighted least squares linear regression models, +including the bias-reduced linearization estimator introduced by +@url{http://www.statcan.gc.ca/pub/12-001-x/2002002/article/9058-eng.pdf, Bell +and McCaffrey (2002)} and developed further by +@url{DOI:10.1080/07350015.2016.1247004, Pustejovsky and Tipton (2017)}. The +package includes functions for estimating the variance- covariance matrix and +for testing single- and multiple- contrast hypotheses based on Wald test +statistics. Tests of single regression coefficients use Satterthwaite or +saddle-point corrections. Tests of multiple- contrast hypotheses use an +approximation to Hotelling's T-squared distribution.") + (license license:gpl3))) + -- 2.25.1