aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2018-10-25 05:17:04 +0200
committerRicardo Wurmus <rekado@elephly.net>2018-10-25 05:17:42 +0200
commit489a6178e68a3a740ecf5c076d05b352bc448fae (patch)
tree931ca885de6e59da03c7e10294c6de276f31136e
parent413944234cf736f6e180a3c075df7e8229727d8f (diff)
downloadpatches-489a6178e68a3a740ecf5c076d05b352bc448fae.tar
patches-489a6178e68a3a740ecf5c076d05b352bc448fae.tar.gz
gnu: Add r-ggeffects.
* gnu/packages/cran.scm (r-ggeffects): New variable.
-rw-r--r--gnu/packages/cran.scm39
1 files changed, 39 insertions, 0 deletions
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 4cd11bfd24..a28b8195d1 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -6561,3 +6561,42 @@ Gaussian on the scale of the linear predictor and are integrated out using the
Laplace approximation. Gradients are calculated using automatic
differentiation.")
(license license:agpl3+)))
+
+(define-public r-ggeffects
+ (package
+ (name "r-ggeffects")
+ (version "0.6.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (cran-uri "ggeffects" version))
+ (sha256
+ (base32
+ "00l02g7yssqxmcmbrzk2wsj3i9ywd0xsy0rmbfh57q1qi76a1wq1"))))
+ (build-system r-build-system)
+ (propagated-inputs
+ `(("r-crayon" ,r-crayon)
+ ("r-dplyr" ,r-dplyr)
+ ("r-ggplot2" ,r-ggplot2)
+ ("r-lme4" ,r-lme4)
+ ("r-magrittr" ,r-magrittr)
+ ("r-mass" ,r-mass)
+ ("r-prediction" ,r-prediction)
+ ("r-purrr" ,r-purrr)
+ ("r-rlang" ,r-rlang)
+ ("r-scales" ,r-scales)
+ ("r-sjlabelled" ,r-sjlabelled)
+ ("r-sjmisc" ,r-sjmisc)
+ ("r-sjstats" ,r-sjstats)
+ ("r-tidyr" ,r-tidyr)))
+ (home-page "https://github.com/strengejacke/ggeffects")
+ (synopsis "Create tidy data frames of marginal effects for ggplot")
+ (description
+ "This package provides tools to compute marginal effects from statistical
+models and return the result as tidy data frames. These data frames are ready
+to use with the @code{ggplot2} package. Marginal effects can be calculated
+for many different models. Interaction terms, splines and polynomial terms
+are also supported. The two main functions are @code{ggpredict()} and
+@code{ggeffect()}. There is a generic @code{plot()} method to plot the
+results using @code{ggplot2}.")
+ (license license:gpl3)))