Related Experiment Video
Updated: Oct 13, 2025

Development of an Individual-Tree Basal Area Increment Model using a Linear Mixed-Effects Approach
Published on: July 3, 2020
cosinoRmixedeffects: an R package for mixed-effects cosinor models
Ruixue Hou1, Lewis E Tomalin1, Mayte Suárez-Fariñas2,3
1Department of Population Health Science and Policy, Icahn School of Medicine at Mount Sinai, New York, NY, USA.
The new cosinoRmixedeffects R package models longitudinal circadian patterns using mixed-effects cosinor models. This tool analyzes complex interactions and provides hypothesis testing for wearable device data, advancing chronobiology research.
Area of Science:
- Chronobiology
- Biostatistics
- Wearable Technology
Background:
- Wearable devices monitor physiological parameters, some with circadian rhythms.
- Existing R packages like cosinor have limitations in analyzing longitudinal data and complex group comparisons.
- A need exists for advanced models to evaluate longitudinal changes in circadian patterns.
Purpose of the Study:
- To develop an R package for analyzing longitudinal periodic data using mixed-effects cosinor models.
- To extend the cosinor model to accommodate random effects and interactions with time-varying covariates.
- To facilitate ease of use and hypothesis testing for circadian parameter analysis.
Main Methods:
- Developed the cosinoRmixedeffects R package implementing mixed-effects cosinor models.
- Integrated syntax and functions from the emmeans package for estimated marginal means and contrasts.
- Employed bootstrapping for estimation and hypothesis testing of non-linear circadian parameters (MESOR, amplitude, acrophase).
Main Results:
- The cosinoRmixedeffects package enables model fitting, estimation, and hypothesis testing for mixed-effects cosinor models.
- The model supports linear and non-linear circadian parameters, including MESOR, amplitude, and acrophase.
- Demonstrated functionality by analyzing longitudinal heart rate variability (HRV) data, assessing differences between genders, BMI, and during SARS-CoV2 infection.
Conclusions:
- The cosinoRmixedeffects package offers a robust framework for analyzing longitudinal circadian data.
- It accommodates factors with multiple categories and complex interactions with circadian parameters.
- This tool enhances the analysis of wearable sensor data for understanding circadian rhythm dynamics.
Related Concept Videos
Mechanistic Models: Compartment Models in Individual and Population Analysis
One-Compartment Open Model: Wagner-Nelson and Loo Riegelman Method for ka Estimation
On...
Comparing the Survival Analysis of Two or More Groups
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...
Parametric Survival Analysis: Weibull and Exponential Methods
Weibull Distribution
The Weibull distribution is a flexible model used in parametric survival analysis. It can handle both increasing and decreasing hazard rates, depending on its shape parameter...
Distributions to Estimate Population Parameter

