From d6c574f2a3a2afbf115b59684cdcc89075262c20 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Fri, 31 Jan 2020 18:32:17 +0100 Subject: [v2 13/34] gnu: Add package r-msm * gnu/packages/cran.scm (r-msm): New variable. --- gnu/packages/cran.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm index 9c1e56bf33..2d8e2f6f7d 100644 --- a/gnu/packages/cran.scm +++ b/gnu/packages/cran.scm @@ -19605,3 +19605,32 @@ regressions. Methods developed in Roberts et al (2014) methods or ML, optionally with standard errors; tetrachoric and biserial correlations are special cases.") (license license:gpl2+))) + +(define-public r-msm + (package + (name "r-msm") + (version "1.6.8") + (source + (origin + (method url-fetch) + (uri (cran-uri "msm" version)) + (sha256 + (base32 + "1d32y8f0vb2dfv3999liigpns788j145nrvd1xpxb9i2lsg8mwgk")))) + (properties `((upstream-name . "msm"))) + (build-system r-build-system) + (propagated-inputs + `(("r-expm" ,r-expm) + ("r-mvtnorm" ,r-mvtnorm) + ("r-survival" ,r-survival))) + (home-page "https://github.com/chjackson/msm") + (synopsis + "Multi-state Markov and hidden Markov models in continuous time") + (description + "This package provides functions for fitting continuous-time Markov and +hidden Markov multi-state models to longitudinal data. Designed for processes +observed at arbitrary times in continuous time (panel data) but some other +observation schemes are supported. Both Markov transition rates and the hidden +Markov output process can be modelled in terms of covariates, which may be +constant or piecewise-constant in time.") + (license license:gpl2+))) -- 2.20.1