unofficial mirror of guix-patches@gnu.org 
 help / color / Atom feed
* [bug#42103] [PATCH] gnu: Add r-flexsurv and dependency
@ 2020-06-28  7:42 Lo Peter
  0 siblings, 0 replies; 2+ messages in thread
From: Lo Peter @ 2020-06-28  7:42 UTC (permalink / raw)
  To: 42103

Dear all,

I am submitting a patch series of r-flexsurv and its dependency.

Regards,
Peter




^ permalink raw reply	[flat|nested] 2+ messages in thread

* [bug#42103] [PATCH 2/2] gnu: Add r-flexsurv.
  2020-06-28  7:44 [bug#42103] [PATCH 1/2] gnu: Add r-muhaz Peter Lo
@ 2020-06-28  7:44 ` Peter Lo
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Lo @ 2020-06-28  7:44 UTC (permalink / raw)
  To: 42103; +Cc: Peter Lo

* 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





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-28  7:44 [bug#42103] [PATCH 1/2] gnu: Add r-muhaz Peter Lo
2020-06-28  7:44 ` [bug#42103] [PATCH 2/2] gnu: Add r-flexsurv Peter Lo
  -- strict thread matches above, loose matches on Subject: below --
2020-06-28  7:42 [bug#42103] [PATCH] gnu: Add r-flexsurv and dependency Lo Peter

unofficial mirror of guix-patches@gnu.org 

Archives are clonable:
	git clone --mirror https://yhetil.org/guix-patches/1 guix-patches/git/1.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guix-patches guix-patches/ https://yhetil.org/guix-patches \
		guix-patches@gnu.org
	public-inbox-index guix-patches

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://news.yhetil.org/yhetil.gnu.guix.patches


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git