unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Peter Lo <peterloleungyau@gmail.com>
To: 42103@debbugs.gnu.org
Cc: Peter Lo <peterloleungyau@gmail.com>
Subject: [bug#42103] [PATCH 2/2] gnu: Add r-flexsurv.
Date: Sun, 28 Jun 2020 15:44:14 +0800	[thread overview]
Message-ID: <20200628074414.6986-2-peterloleungyau@gmail.com> (raw)
In-Reply-To: <20200628074414.6986-1-peterloleungyau@gmail.com>

* gnu/packages/cran.scm (r-flexsurv): New variable.
---
 gnu/packages/cran.scm | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index b6cc9b48c3..0ddd0d29d2 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -22348,3 +22348,40 @@ counting and recursive k-means partitioning.")
     (description
       "Produces a smooth estimate of the hazard function for censored data.")
     (license (list license:gpl2+ license:gpl3+))))
+
+(define-public r-flexsurv
+  (package
+    (name "r-flexsurv")
+    (version "1.1.1")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (cran-uri "flexsurv" version))
+        (sha256
+          (base32
+            "0x7p1rv51pplfyyzcg63ssb8z56mig7y0363hkr0219w3cvyq9nr"))))
+    (properties `((upstream-name . "flexsurv")))
+    (build-system r-build-system)
+    (propagated-inputs
+      `(("r-desolve" ,r-desolve)
+        ("r-mstate" ,r-mstate)
+        ("r-muhaz" ,r-muhaz)
+        ("r-mvtnorm" ,r-mvtnorm)
+        ("r-quadprog" ,r-quadprog)
+        ("r-rcpp" ,r-rcpp)
+        ("r-survival" ,r-survival)
+        ("r-tibble" ,r-tibble)
+        ("r-tidyr" ,r-tidyr)))
+    (native-inputs `(("r-knitr" ,r-knitr)))
+    (home-page
+      "https://github.com/chjackson/flexsurv-dev")
+    (synopsis
+      "Flexible Parametric Survival and Multi-State Models")
+    (description
+      "Flexible parametric models for time-to-event data, including
+the Royston-Parmar spline model, generalized gamma and generalized F
+distributions.  Any user-defined parametric distribution can be
+fitted, given at least an R function defining the probability density
+or hazard.  There are also tools for fitting and predicting from fully
+parametric multi-state models.")
+    (license license:gpl2+)))
-- 
2.17.1





  reply	other threads:[~2020-06-28  7:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-28  7:42 [bug#42103] [PATCH] gnu: Add r-flexsurv and dependency Lo Peter
2020-06-28  7:44 ` [bug#42103] [PATCH 1/2] gnu: Add r-muhaz Peter Lo
2020-06-28  7:44   ` Peter Lo [this message]
2020-09-11  6:02 ` bug#42103: [PATCH] gnu: Add r-flexsurv and dependency Ricardo Wurmus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200628074414.6986-2-peterloleungyau@gmail.com \
    --to=peterloleungyau@gmail.com \
    --cc=42103@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).