Last updated: 2025-06-18
Supplementary material for the manuscript “Estimating and presenting nonlinear associations with Restricted Cubic Splines”, International Journal of Epidemiology 2025
Code to reproduce the logistic and Cox regression examples
Output for the examples in html format
Functions used for the examples
Macros to plot ORs from a logistic model: unadjusted models / adjusted models
Macros to plot HRs from a Cox model: unadjusted models / adjusted models
Macros to plot predicted probabilities after logistic model: unadjusted models / adjusted models
Macros to plot absolute risks after Cox model: unadjusted models / adjusted models
interactionRCS
Supplemenraty material for the paper “Estimating and presenting hazard ratios and absolute risks from a Cox model with complex nonlinear interactions” published in the American Journal of Epidemiology (2024)