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

被引:0
作者
Azevedo, Marta [1 ]
Meira-Machado, Luis [1 ]
Gude, Francisco [2 ]
Araujo, Artur [3 ]
机构
[1] Univ Minho, Ctr Math, P-4710057 Braga, Portugal
[2] Univ Hosp Santiago de Compostela, Dept Med, Santiago 15705, Spain
[3] Univ Vigo, Campus Lagoas Marcosende, Vigo 36310, Spain
来源
APPLIED SCIENCES-BASEL | 2024年 / 14卷 / 09期
关键词
logistic models; generalized additive models; odds ratio; reference value; smoothing splines; CONTINUOUS PREDICTORS; MODELS; REGRESSION;
D O I
10.3390/app14093897
中图分类号
O6 [化学];
学科分类号
0703 ;
摘要
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.
引用
收藏
页数:17
相关论文
共 15 条
[11]  
R Core Team, R LANG ENV STAT COMP
[12]   Dichotomizing continuous predictors in multiple regression: a bad idea [J].
Royston, P ;
Altman, DG ;
Sauerbrei, W .
STATISTICS IN MEDICINE, 2006, 25 (01) :127-141
[13]   ESTIMATING DIMENSION OF A MODEL [J].
SCHWARZ, G .
ANNALS OF STATISTICS, 1978, 6 (02) :461-464
[14]  
Wahba G., 1990, Spline models for observational data
[15]  
Wood S.N., 2006, Generalized Additive Models: An Introduction with R