Cargando…
Restricted cubic splines for modelling periodic data
In regression modelling the non-linear relationships between explanatory variables and outcome are often effectively modelled using restricted cubic splines (RCS). We focus on situations where the values of the outcome change periodically over time and we define an extension of RCS that considers pe...
Autores principales: | , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
Public Library of Science
2020
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7592770/ https://www.ncbi.nlm.nih.gov/pubmed/33112926 http://dx.doi.org/10.1371/journal.pone.0241364 |
_version_ | 1783601250657370112 |
---|---|
author | Lusa, Lara Ahlin, Črt |
author_facet | Lusa, Lara Ahlin, Črt |
author_sort | Lusa, Lara |
collection | PubMed |
description | In regression modelling the non-linear relationships between explanatory variables and outcome are often effectively modelled using restricted cubic splines (RCS). We focus on situations where the values of the outcome change periodically over time and we define an extension of RCS that considers periodicity by introducing numerical constraints. Practical examples include the estimation of seasonal variations, a common aim in virological research, or the study of hormonal fluctuations within menstrual cycle. Using real and simulated data with binary outcomes we show that periodic RCS can perform better than other methods proposed for periodic data. They greatly reduce the variability of the estimates obtained at the extremes of the period compared to cubic spline methods and require the estimation of fewer parameters; cosinor models perform similarly to the best cubic spline model and their estimates are generally less variable, but only if an appropriate number of harmonics is used. Periodic RCS provide a useful extension of RCS for periodic data when the assumption of equality of the outcome at the beginning and end of the period is scientifically sensible. The implementation of periodic RCS is freely available in peRiodiCS R package and the paper presents examples of their usage for the modelling of the seasonal occurrence of the viruses. |
format | Online Article Text |
id | pubmed-7592770 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2020 |
publisher | Public Library of Science |
record_format | MEDLINE/PubMed |
spelling | pubmed-75927702020-11-02 Restricted cubic splines for modelling periodic data Lusa, Lara Ahlin, Črt PLoS One Research Article In regression modelling the non-linear relationships between explanatory variables and outcome are often effectively modelled using restricted cubic splines (RCS). We focus on situations where the values of the outcome change periodically over time and we define an extension of RCS that considers periodicity by introducing numerical constraints. Practical examples include the estimation of seasonal variations, a common aim in virological research, or the study of hormonal fluctuations within menstrual cycle. Using real and simulated data with binary outcomes we show that periodic RCS can perform better than other methods proposed for periodic data. They greatly reduce the variability of the estimates obtained at the extremes of the period compared to cubic spline methods and require the estimation of fewer parameters; cosinor models perform similarly to the best cubic spline model and their estimates are generally less variable, but only if an appropriate number of harmonics is used. Periodic RCS provide a useful extension of RCS for periodic data when the assumption of equality of the outcome at the beginning and end of the period is scientifically sensible. The implementation of periodic RCS is freely available in peRiodiCS R package and the paper presents examples of their usage for the modelling of the seasonal occurrence of the viruses. Public Library of Science 2020-10-28 /pmc/articles/PMC7592770/ /pubmed/33112926 http://dx.doi.org/10.1371/journal.pone.0241364 Text en © 2020 Lusa, Ahlin http://creativecommons.org/licenses/by/4.0/ This is an open access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/4.0/) , which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited. |
spellingShingle | Research Article Lusa, Lara Ahlin, Črt Restricted cubic splines for modelling periodic data |
title | Restricted cubic splines for modelling periodic data |
title_full | Restricted cubic splines for modelling periodic data |
title_fullStr | Restricted cubic splines for modelling periodic data |
title_full_unstemmed | Restricted cubic splines for modelling periodic data |
title_short | Restricted cubic splines for modelling periodic data |
title_sort | restricted cubic splines for modelling periodic data |
topic | Research Article |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7592770/ https://www.ncbi.nlm.nih.gov/pubmed/33112926 http://dx.doi.org/10.1371/journal.pone.0241364 |
work_keys_str_mv | AT lusalara restrictedcubicsplinesformodellingperiodicdata AT ahlincrt restrictedcubicsplinesformodellingperiodicdata |