Related Experiment Video
Updated: Oct 26, 2025

Development of an Individual-Tree Basal Area Increment Model using a Linear Mixed-Effects Approach
Published on: July 3, 2020
What's for dynr: A Package for Linear and Nonlinear Dynamic Modeling in R
Lu Ou1, Michael D Hunter2, Sy-Miin Chow3
1ACTNext, ACT, Inc., 500 Act Drive, Iowa City, IA 52244.
A new R package, dynr, offers fast, free tools for analyzing complex behavioral data with regime switches. This software enables advanced modeling of dynamic systems, overcoming previous accessibility limitations.
Area of Science:
- Behavioral Sciences
- Computational Statistics
- Psychometrics
Background:
- Intensive longitudinal data in behavioral sciences are often noisy and multivariate.
- Models with regime switches are increasingly used but lack accessible software.
- Existing software is often slow and not freely available.
Purpose of the Study:
- Introduce the dynr R package for analyzing complex longitudinal data.
- Provide the mathematical and computational foundations of the dynr package.
- Demonstrate the utility of dynr through illustrative examples.
Main Methods:
- Developed an R package (dynr) using C for computational efficiency.
- Implemented a broad class of linear and nonlinear discrete- and continuous-time models.
- Incorporated regime-switching properties and linear Gaussian measurement functions.
Main Results:
- The dynr package offers a fast and freely accessible solution for regime-switching models.
- Handles both discrete- and continuous-time dynamics with discontinuities.
- Successfully demonstrated unique features through two case studies.
Conclusions:
- dynr provides a powerful and user-friendly tool for advanced longitudinal data analysis.
- Facilitates the study of complex dynamics and regime shifts in behavioral research.
- Addresses the scarcity of accessible and efficient software for such models.
Related Concept Videos
Mechanistic Models: Compartment Models in Algorithms for Numerical Problem Solving
In individual population analyses, different algorithms are employed, such as Cauchy's method, which uses a...
Introduction to R
Linear Approximation in Time Domain
For a simple pendulum with a mass evenly distributed along its length and the center of mass located at half the pendulum's length,...
Linear Approximation in Frequency Domain
In contrast, nonlinear systems do not inherently possess these properties. However, for small deviations around an operating point, a nonlinear system can often be approximated as linear....
Quadratic Models
Calibration Curves: Linear Least Squares
For data that follow a straight line, the standard method for fitting is the linear...

