IDEAS home Printed from https://ideas.repec.org/a/plo/pone00/0241364.html
   My bibliography  Save this article

Restricted cubic splines for modelling periodic data

Author

Listed:
  • Lara Lusa
  • Črt Ahlin

Abstract

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.

Suggested Citation

  • Lara Lusa & Črt Ahlin, 2020. "Restricted cubic splines for modelling periodic data," PLOS ONE, Public Library of Science, vol. 15(10), pages 1-17, October.
  • Handle: RePEc:plo:pone00:0241364
    DOI: 10.1371/journal.pone.0241364
    as

    Download full text from publisher

    File URL: https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0241364
    Download Restriction: no

    File URL: https://journals.plos.org/plosone/article/file?id=10.1371/journal.pone.0241364&type=printable
    Download Restriction: no

    File URL: https://libkey.io/10.1371/journal.pone.0241364?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Daowen Zhang & Xihong Lin & MaryFran Sowers, 2000. "Semiparametric Regression for Periodic Longitudinal Hormone Data from Multiple Menstrual Cycles," Biometrics, The International Biometric Society, vol. 56(1), pages 31-39, March.
    2. Lindgren, Finn & Rue, Håvard, 2015. "Bayesian Spatial Modelling with R-INLA," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 63(i19).
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Cho, Daegon & Hwang, Youngdeok & Park, Jongwon, 2018. "More buzz, more vibes: Impact of social media on concert distribution," Journal of Economic Behavior & Organization, Elsevier, vol. 156(C), pages 103-113.
    2. Johnson, Blair T. & Sisti, Anthony & Bernstein, Mary & Chen, Kun & Hennessy, Emily A. & Acabchuk, Rebecca L. & Matos, Michaela, 2021. "Community-level factors and incidence of gun violence in the United States, 2014–2017," Social Science & Medicine, Elsevier, vol. 280(C).
    3. Zhang, Shen & Liu, Xin & Tang, Jinjun & Cheng, Shaowu & Qi, Yong & Wang, Yinhai, 2018. "Spatio-temporal modeling of destination choice behavior through the Bayesian hierarchical approach," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 512(C), pages 537-551.
    4. C. Forlani & S. Bhatt & M. Cameletti & E. Krainski & M. Blangiardo, 2020. "A joint Bayesian space–time model to integrate spatially misaligned air pollution data in R‐INLA," Environmetrics, John Wiley & Sons, Ltd., vol. 31(8), December.
    5. Divan A. Burger & Sean van der Merwe & Emmanuel Lesaffre & Peter C. le Roux & Morgan J. Raath‐Krüger, 2023. "A robust mixed‐effects parametric quantile regression model for continuous proportions: Quantifying the constraints to vitality in cushion plants," Statistica Neerlandica, Netherlands Society for Statistics and Operations Research, vol. 77(4), pages 444-470, November.
    6. Sameh Abdulah & Yuxiao Li & Jian Cao & Hatem Ltaief & David E. Keyes & Marc G. Genton & Ying Sun, 2023. "Large‐scale environmental data science with ExaGeoStatR," Environmetrics, John Wiley & Sons, Ltd., vol. 34(1), February.
    7. André Victor Ribeiro Amaral & Elias Teixeira Krainski & Ruiman Zhong & Paula Moraga, 2024. "Model-Based Geostatistics Under Spatially Varying Preferential Sampling," Journal of Agricultural, Biological and Environmental Statistics, Springer;The International Biometric Society;American Statistical Association, vol. 29(4), pages 766-792, December.
    8. John M. Humphreys & Robert B. Srygley & David H. Branson, 2022. "Geographic Variation in Migratory Grasshopper Recruitment under Projected Climate Change," Geographies, MDPI, vol. 2(1), pages 1-19, January.
    9. Tyler Andrew Scott & Nicola Ulibarri & Omar Perez Figueroa, 2020. "NEPA and National Trends in Federal Infrastructure Siting in the United States," Review of Policy Research, Policy Studies Organization, vol. 37(5), pages 605-633, September.
    10. Getayeneh Antehunegn Tesema & Zemenu Tadesse Tessema & Stephane Heritier & Rob G. Stirling & Arul Earnest, 2023. "A Systematic Review of Joint Spatial and Spatiotemporal Models in Health Research," IJERPH, MDPI, vol. 20(7), pages 1-24, March.
    11. Álvaro Briz-Redón, 2021. "Respondent Burden Effects on Item Non-Response and Careless Response Rates: An Analysis of Two Types of Surveys," Mathematics, MDPI, vol. 9(17), pages 1-16, August.
    12. Zhao, Shi & Bakoyannis, Giorgos & Lourens, Spencer & Tu, Wanzhu, 2020. "Comparison of nonlinear curves and surfaces," Computational Statistics & Data Analysis, Elsevier, vol. 150(C).
    13. Dong Liang & Genevieve Nesslage & Michael Wilberg & Thomas Miller, 2017. "Bayesian Calibration of Blue Crab (Callinectes sapidus) Abundance Indices Based on Probability Surveys," Journal of Agricultural, Biological and Environmental Statistics, Springer;The International Biometric Society;American Statistical Association, vol. 22(4), pages 481-497, December.
    14. Silius M. Vandeskog & Sara Martino & Daniela Castro-Camilo & Håvard Rue, 2022. "Modelling Sub-daily Precipitation Extremes with the Blended Generalised Extreme Value Distribution," Journal of Agricultural, Biological and Environmental Statistics, Springer;The International Biometric Society;American Statistical Association, vol. 27(4), pages 598-621, December.
    15. Humphreys, John M. & Srygley, Robert B. & Lawton, Douglas & Hudson, Amy R. & Branson, David H., 2022. "Grasshoppers exhibit asynchrony and spatial non-stationarity in response to the El Niño/Southern and Pacific Decadal Oscillations," Ecological Modelling, Elsevier, vol. 471(C).
    16. Carlos Díaz-Avalos & Pablo Juan & Somnath Chaudhuri & Marc Sáez & Laura Serra, 2020. "Association between the New COVID-19 Cases and Air Pollution with Meteorological Elements in Nine Counties of New York State," IJERPH, MDPI, vol. 17(23), pages 1-18, December.
    17. Beręsewicz Maciej, 2019. "Correlates of Representation Errors in Internet Data Sources for Real Estate Market," Journal of Official Statistics, Sciendo, vol. 35(3), pages 509-529, September.
    18. Deslatte, Aaron & Scott, Tyler A. & Carter, David P., 2019. "Specialized governance and regional land-use outcomes: A spatial analysis of Florida community development districts," Land Use Policy, Elsevier, vol. 83(C), pages 227-239.
    19. Tim C. D. Lucas & Anita K. Nandi & Elisabeth G. Chestnutt & Katherine A. Twohig & Suzanne H. Keddie & Emma L. Collins & Rosalind E. Howes & Michele Nguyen & Susan F. Rumisha & Andre Python & Rohan Ara, 2021. "Mapping malaria by sharing spatial information between incidence and prevalence data sets," Journal of the Royal Statistical Society Series C, Royal Statistical Society, vol. 70(3), pages 733-749, June.
    20. Chiranjit Dutta & Nalini Ravishanker & Sumanta Basu, 2022. "Modeling Multivariate Positive-Valued Time Series Using R-INLA," Papers 2206.05374, arXiv.org, revised Jul 2022.

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:plo:pone00:0241364. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: plosone (email available below). General contact details of provider: https://journals.plos.org/plosone/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.