journal article·2024-05-02Open access

Pointwise Nonparametric Estimation of Odds Ratio Curves with R: Introducing the flexOR Package

Marta Azevedo, Luís Meira-Machado, Francisco Gude, Artur Araújo

Applied Sciences· Volume 14· Issue 9

Abstract

The analysis of odds ratio curves is a valuable tool in understanding the relationship between continuous predictors and binary outcomes. Traditional parametric regression approaches often assume specific functional forms, limiting their flexibility and applicability to complex data. To address this limitation and introduce more flexibility, several smoothing methods may be applied, and approaches based on splines are the most frequently considered in this context. To better understand the effects that each continuous covariate has on the outcome, results can be expressed in terms of splines-based odds ratio (OR) curves, taking a specific covariate value as reference. In this paper, we introduce an R package, flexOR, which provides a comprehensive framework for pointwise nonparametric estimation of odds ratio curves for continuous predictors. The package can be used to estimate odds ratio curves without imposing rigid assumptions about their underlying functional form while considering a reference value for the continuous covariate. The package offers various options for automatically choosing the degrees of freedom in multivariable models. It also includes visualization functions to aid in the interpretation and presentation of the estimated odds ratio curves. flexOR offers a user-friendly interface, making it accessible to researchers and practitioners without extensive statistical backgrounds.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Advanced Statistical Methods and Models · Statistical Methods and Inference · Statistical Methods in Clinical Trials

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Centre of Mathematics, University of Minho, 4710-057 Braga, Portugal

Department of Medicine, University of Santiago de Compostela, 15705 Santiago, Spain

Campus Lagoas-Marcosende, University of Vigo, 36310 Vigo, Spain

Funding

CMAT–Research Centre of Mathematics of the University of Minho

References (15)

Show source-provided references
1. Hosmer, D.W., Lemeshow, S., and Sturdivant, R.X. (2013). Applied Logistic Regression, Wiley. [3rd ed.].10.1002/9781118548387 ↗
2. Dichotomizing continuous predictors in multiple regression: A bad idea10.1002/sim.2331 ↗
3. Barrio, I., Rodríguez-Álvarez, M., and Arostegui, I. (2015, January 5–15). Categorisation of continuous variables in a logistic regression model using the R package CatPredi. Proceedings of the MOL2NET’15, Conference on Molecular, Biomedical, and Computational & Network Science and Engineering, Athens, Greece.10.3390/MOL2NET-1-e004 ↗
4. A new approach to categorising continuous variables in prediction models: Proposal and validation10.1177/0962280215601873 ↗
5. Hastie, T.J., and Tibshirani, R.J. (1990). Generalized Additive Models, Chapman & Hall/CRC.
6. Wood, S. (2017). Generalized Additive Models: An Introduction with R, Chapman & Hall/CRC.10.1201/9781315370279 ↗
7. Wahba, G. (1990). Spline Models for Observational Data, SIAM.10.1137/1.9781611970128 ↗
8. A new look at the statistical model identification10.1109/TAC.1974.1100705 ↗
9. Smoothing parameter selection in nonparametric regression using an improved akaike information criterion10.1111/1467-9868.00125 ↗
10. Estimating the dimension of a model10.1214/aos/1176344136 ↗
11. Flexible hazard ratio curves for continuous predictors in multi-state models10.1177/1471082X0801000303 ↗
12. smoothHR: An R Package for Pointwise Nonparametric Estimation of Hazard Ratio Curves of Continuous Predictors
13. de Boor, C. (2001). A Practical Guide to Splines (Rev. Edn), Springer.
14. Application of nonparametric models for calculating odds-ratios and their confidence intervals for continuous exposures10.1093/aje/154.3.264 ↗
15. R Core Team (2024, April 27). Available online: http://www.R-project.org/.