Statistics, Department of

 

The R Journal

Date of this Version

6-2019

Document Type

Article

Citation

The R Journal (June 2019) 11(1); Editor: Norm Matloff

Comments

Copyright 2019, The R Foundation. Open access material. License: CC BY 4.0 International

Abstract

Intensive longitudinal data in the behavioral sciences are often noisy, multivariate in nature, and may involve multiple units undergoing regime switches by showing discontinuities interspersed with continuous dynamics. Despite increasing interest in using linear and nonlinear differential/difference equation models with regime switches, there has been a scarcity of software packages that are fast and freely accessible. We have created an R package called dynr that can handle a broad class of linear and nonlinear discrete- and continuous-time models, with regime-switching properties and linear Gaussian measurement functions, in C, while maintaining simple and easy-to-learn model specification functions in R. We present the mathematical and computational bases used by the dynr R package, and present two illustrative examples to demonstrate the unique features of dynr.

Share

COinS