SkillAgentSearch skills...

RCSplines

Software material for estimating and presenting nonlinear associations and interactions with Restricted Cubic Splines

Install / Use

/learn @andreabellavia/RCSplines
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Estimating and presenting nonlinear associations and interactions with Restricted Cubic Splines (RCS)

Last updated: 2025-06-18


  • Slides for the Harvard Catalyst seminar on January 29, 2025

1. RCS to model a continuous variable in logistic and Cox regression

Supplementary material for the manuscript “Estimating and presenting nonlinear associations with Restricted Cubic Splines”, International Journal of Epidemiology 2025

R material

  • Code to reproduce the logistic and Cox regression examples

  • Output for the examples in html format

  • Functions used for the examples

SAS material

Stata material

  • Code to reproduce the logistic regression example

  • Code to reproduce the Cox regression example

2. RCS to model a nonlinear interaction between a binary and a continuous variable

R package interactionRCS

Absolute Risks and Absolute Risk Differences from a Cox model with nonlinear interactions

  • 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)

  • R material

  • SAS material

3. Generalized linear model (GLM) for estimating event risks using Pseudo-values

Pseudo-values derivation and comparison with Kaplan-Meier estimates

Pseudo-values GLM with RCS to estimate nonlinear Absolute Risks and Absolute Risk Differences

Related Skills

View on GitHub
GitHub Stars11
CategoryDevelopment
Updated5d ago
Forks2

Languages

HTML

Security Score

75/100

Audited on Mar 28, 2026

No findings