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. Andre Python & Andreas Bender & Marta Blangiardo & Janine B. Illian & Ying Lin & Baoli Liu & Tim C.D. Lucas & Siwei Tan & Yingying Wen & Davit Svanidze & Jianwei Yin, 2022. "A downscaling approach to compare COVID‐19 count data from databases aggregated at different spatial scales," Journal of the Royal Statistical Society Series A, Royal Statistical Society, vol. 185(1), pages 202-218, January.
    3. Layla Höckerstedt & Elina Numminen & Ben Ashby & Mike Boots & Anna Norberg & Anna-Liisa Laine, 2022. "Spatially structured eco-evolutionary dynamics in a host-pathogen interaction render isolated populations vulnerable to disease," Nature Communications, Nature, vol. 13(1), pages 1-11, December.
    4. Jussi Jousimo & Otso Ovaskainen, 2016. "A Spatio-Temporally Explicit Random Encounter Model for Large-Scale Population Surveys," PLOS ONE, Public Library of Science, vol. 11(9), pages 1-19, September.
    5. Jacqueline D. Seufert & Andre Python & Christoph Weisser & Elías Cisneros & Krisztina Kis‐Katos & Thomas Kneib, 2022. "Mapping ex ante risks of COVID‐19 in Indonesia using a Bayesian geostatistical model on airport network data," Journal of the Royal Statistical Society Series A, Royal Statistical Society, vol. 185(4), pages 2121-2155, October.
    6. 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).
    7. 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.
    8. Francis K.C. Hui & Nicole A. Hill & A.H. Welsh, 2022. "Assuming independence in spatial latent variable models: Consequences and implications of misspecification," Biometrics, The International Biometric Society, vol. 78(1), pages 85-99, March.
    9. Damaris K. Kinyoki & Samuel O. Manda & Grainne M. Moloney & Elijah O. Odundo & James A. Berkley & Abdisalan M. Noor & Ngianga-Bakwin Kandala, 2017. "Modelling the Ecological Comorbidity of Acute Respiratory Infection, Diarrhoea and Stunting among Children Under the Age of 5 Years in Somalia," International Statistical Review, International Statistical Institute, vol. 85(1), pages 164-176, April.
    10. Paige, John & Fuglstad, Geir-Arne & Riebler, Andrea & Wakefield, Jon, 2022. "Bayesian multiresolution modeling of georeferenced data: An extension of ‘LatticeKrig’," Computational Statistics & Data Analysis, Elsevier, vol. 173(C).
    11. Daniela Castro‐Camilo & Raphaël Huser & Håvard Rue, 2022. "Practical strategies for generalized extreme value‐based regression models for extremes," Environmetrics, John Wiley & Sons, Ltd., vol. 33(6), September.
    12. 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.
    13. Guido Fioravanti & Michela Cameletti & Sara Martino & Giorgio Cattani & Enrico Pisoni, 2022. "A spatiotemporal analysis of NO2 concentrations during the Italian 2020 COVID‐19 lockdown," Environmetrics, John Wiley & Sons, Ltd., vol. 33(4), June.
    14. Oliver Stoner & Theo Economou, 2020. "Multivariate hierarchical frameworks for modeling delayed reporting in count data," Biometrics, The International Biometric Society, vol. 76(3), pages 789-798, September.
    15. Aaron Osgood‐Zimmerman & Jon Wakefield, 2023. "A Statistical Review of Template Model Builder: A Flexible Tool for Spatial Modelling," International Statistical Review, International Statistical Institute, vol. 91(2), pages 318-342, August.
    16. William Gonzalez Daza & Renata L. Muylaert & Thadeu Sobral-Souza & Victor Lemes Landeiro, 2023. "Malaria Risk Drivers in the Brazilian Amazon: Land Use—Land Cover Interactions and Biological Diversity," IJERPH, MDPI, vol. 20(15), pages 1-16, August.
    17. 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.
    18. 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.
    19. John M. Humphreys, 2022. "Amplification in Time and Dilution in Space: Partitioning Spatiotemporal Processes to Assess the Role of Avian-Host Phylodiversity in Shaping Eastern Equine Encephalitis Virus Distribution," Geographies, MDPI, vol. 2(3), pages 1-16, July.
    20. 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.

    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.