Cargando…

cosinoRmixedeffects: an R package for mixed-effects cosinor models

BACKGROUND: Wearable devices enable monitoring and measurement of physiological parameters over a 24-h period, and some of which exhibit circadian rhythm characteristics. However, the currently available R package cosinor could only analyze daily cross-sectional data and compare the parameters betwe...

Descripción completa

Detalles Bibliográficos
Autores principales: Hou, Ruixue, Tomalin, Lewis E., Suárez-Fariñas, Mayte
Formato: Online Artículo Texto
Lenguaje:English
Publicado: BioMed Central 2021
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8590130/
https://www.ncbi.nlm.nih.gov/pubmed/34773978
http://dx.doi.org/10.1186/s12859-021-04463-3
_version_ 1784598891409178624
author Hou, Ruixue
Tomalin, Lewis E.
Suárez-Fariñas, Mayte
author_facet Hou, Ruixue
Tomalin, Lewis E.
Suárez-Fariñas, Mayte
author_sort Hou, Ruixue
collection PubMed
description BACKGROUND: Wearable devices enable monitoring and measurement of physiological parameters over a 24-h period, and some of which exhibit circadian rhythm characteristics. However, the currently available R package cosinor could only analyze daily cross-sectional data and compare the parameters between groups with two levels. To evaluate longitudinal changes in the circadian patterns, we need to extend the model to a mixed-effect model framework, allowing for random effects and interaction between COSINOR parameters and time-varying covariates. RESULTS: We developed the cosinoRmixedeffects R package for modelling longitudinal periodic data using mixed-effects cosinor models. The model allows for covariates and interactions with the non-linear parameters MESOR, amplitude, and acrophase. To facilitate ease of use, the package utilizes the syntax and functions of the widely used emmeans package to obtain estimated marginal means and contrasts. Estimation and hypothesis testing involving the non-linear circadian parameters are carried out using bootstrapping. We illustrate the package functionality by modelling daily measurements of heart rate variability (HRV) collected among health care workers over several months. Differences in circadian patterns of HRV between genders, BMI, and during infection with SARS-CoV2 are evaluated to illustrate how to perform hypothesis testing. CONCLUSION: cosinoRmixedeffects package provides the model fitting, estimation and hypothesis testing for the mixed-effects COSINOR model, for the linear and non-linear circadian parameters MESOR, amplitude and acrophase. The model accommodates factors with any number of categories, as well as complex interactions with circadian parameters and categorical factors. SUPPLEMENTARY INFORMATION: The online version contains supplementary material available at 10.1186/s12859-021-04463-3.
format Online
Article
Text
id pubmed-8590130
institution National Center for Biotechnology Information
language English
publishDate 2021
publisher BioMed Central
record_format MEDLINE/PubMed
spelling pubmed-85901302021-11-15 cosinoRmixedeffects: an R package for mixed-effects cosinor models Hou, Ruixue Tomalin, Lewis E. Suárez-Fariñas, Mayte BMC Bioinformatics Software BACKGROUND: Wearable devices enable monitoring and measurement of physiological parameters over a 24-h period, and some of which exhibit circadian rhythm characteristics. However, the currently available R package cosinor could only analyze daily cross-sectional data and compare the parameters between groups with two levels. To evaluate longitudinal changes in the circadian patterns, we need to extend the model to a mixed-effect model framework, allowing for random effects and interaction between COSINOR parameters and time-varying covariates. RESULTS: We developed the cosinoRmixedeffects R package for modelling longitudinal periodic data using mixed-effects cosinor models. The model allows for covariates and interactions with the non-linear parameters MESOR, amplitude, and acrophase. To facilitate ease of use, the package utilizes the syntax and functions of the widely used emmeans package to obtain estimated marginal means and contrasts. Estimation and hypothesis testing involving the non-linear circadian parameters are carried out using bootstrapping. We illustrate the package functionality by modelling daily measurements of heart rate variability (HRV) collected among health care workers over several months. Differences in circadian patterns of HRV between genders, BMI, and during infection with SARS-CoV2 are evaluated to illustrate how to perform hypothesis testing. CONCLUSION: cosinoRmixedeffects package provides the model fitting, estimation and hypothesis testing for the mixed-effects COSINOR model, for the linear and non-linear circadian parameters MESOR, amplitude and acrophase. The model accommodates factors with any number of categories, as well as complex interactions with circadian parameters and categorical factors. SUPPLEMENTARY INFORMATION: The online version contains supplementary material available at 10.1186/s12859-021-04463-3. BioMed Central 2021-11-13 /pmc/articles/PMC8590130/ /pubmed/34773978 http://dx.doi.org/10.1186/s12859-021-04463-3 Text en © The Author(s) 2021 https://creativecommons.org/licenses/by/4.0/Open AccessThis article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/ (https://creativecommons.org/licenses/by/4.0/) . The Creative Commons Public Domain Dedication waiver (http://creativecommons.org/publicdomain/zero/1.0/ (https://creativecommons.org/publicdomain/zero/1.0/) ) applies to the data made available in this article, unless otherwise stated in a credit line to the data.
spellingShingle Software
Hou, Ruixue
Tomalin, Lewis E.
Suárez-Fariñas, Mayte
cosinoRmixedeffects: an R package for mixed-effects cosinor models
title cosinoRmixedeffects: an R package for mixed-effects cosinor models
title_full cosinoRmixedeffects: an R package for mixed-effects cosinor models
title_fullStr cosinoRmixedeffects: an R package for mixed-effects cosinor models
title_full_unstemmed cosinoRmixedeffects: an R package for mixed-effects cosinor models
title_short cosinoRmixedeffects: an R package for mixed-effects cosinor models
title_sort cosinormixedeffects: an r package for mixed-effects cosinor models
topic Software
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8590130/
https://www.ncbi.nlm.nih.gov/pubmed/34773978
http://dx.doi.org/10.1186/s12859-021-04463-3
work_keys_str_mv AT houruixue cosinormixedeffectsanrpackageformixedeffectscosinormodels
AT tomalinlewise cosinormixedeffectsanrpackageformixedeffectscosinormodels
AT suarezfarinasmayte cosinormixedeffectsanrpackageformixedeffectscosinormodels