Skip to content

dynr

Dynamic Models with Regime-Switching

v0.1.16-114 · Sep 2, 2025 · GPL-3

Description

Intensive longitudinal data have become increasingly prevalent in various scientific disciplines. Many such data sets are noisy, multivariate, and multi-subject in nature. The change functions may also be continuous, or continuous but interspersed with periods of discontinuities (i.e., showing regime switches). The package 'dynr' (Dynamic Modeling in R) is an R package that implements a set of computationally efficient algorithms for handling a broad class of linear and nonlinear discrete- and continuous-time models with regime-switching properties under the constraint of linear Gaussian measurement functions. The discrete-time models can generally take on the form of a state-space or difference equation model. The continuous-time models are generally expressed as a set of ordinary or stochastic differential equations. All estimation and computations are performed in C, but users are provided with the option to specify the model of interest via a set of simple and easy-to-learn model specification functions in R. Model fitting can be performed using single-subject time series data or multiple-subject longitudinal data. Ou, Hunter, & Chow (2019) <doi:10.32614%2FRJ-2019-012> provided a detailed introduction to the interface and more information on the algorithms.

Downloads

1.3K

Last 30 days

3289th

1.3K

Last 90 days

1.3K

Last year

CRAN Check Status

3 NOTE
11 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 NOTE
r-oldrel-macos-x86_64 NOTE
r-oldrel-windows-x86_64 NOTE
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (14 non-OK)
OK r-devel-linux-x86_64-debian-clang

*


            
OK r-devel-linux-x86_64-debian-gcc

*


            
OK r-devel-linux-x86_64-fedora-clang

*


            
OK r-devel-linux-x86_64-fedora-gcc

*


            
OK r-devel-macos-arm64

*


            
OK r-devel-windows-x86_64

*


            
NOTE r-oldrel-macos-arm64

installed package size

  installed size is  8.0Mb
  sub-directories of 1Mb or more:
    data   2.5Mb
    doc    1.4Mb
    libs   2.9Mb
NOTE r-oldrel-macos-x86_64

installed package size

  installed size is  8.6Mb
  sub-directories of 1Mb or more:
    data   2.5Mb
    doc    1.4Mb
    libs   3.5Mb
NOTE r-oldrel-windows-x86_64

installed package size

  installed size is  5.6Mb
  sub-directories of 1Mb or more:
    data   2.5Mb
    doc    1.4Mb
OK r-patched-linux-x86_64

*


            
OK r-release-linux-x86_64

*


            
OK r-release-macos-arm64

*


            
OK r-release-macos-x86_64

*


            
OK r-release-windows-x86_64

*


            

Check History

NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 9, 2026
NOTE r-oldrel-macos-arm64

installed package size

  installed size is  8.0Mb
  sub-directories of 1Mb or more:
    data   2.5Mb
    doc    1.4Mb
    libs   2.9Mb
NOTE r-oldrel-macos-x86_64

installed package size

  installed size is  8.6Mb
  sub-directories of 1Mb or more:
    data   2.5Mb
    doc    1.4Mb
    libs   3.5Mb
NOTE r-oldrel-windows-x86_64

installed package size

  installed size is  5.6Mb
  sub-directories of 1Mb or more:
    data   2.5Mb
    doc    1.4Mb

Reverse Dependencies (3)

imports

suggests

Dependency Network

Dependencies Reverse dependencies ggplot2 MASS Matrix numDeriv xtable latex2exp reshape2 plyr mice magrittr fda car stringi tibble deSolve +1 more dependencies bootStateSpace cTMed simStateSpace dynr

Version History

new 0.1.16-114 Mar 9, 2026