Skip to Main Content

%makespl

%makespl makes restricted cubic spline variables for a continuous variable that allows estimating a possibly non-linear relationship with the outcome. The continuous variable could be a confounder or the exposure of primary interest. Investigators could pick the number of knots for the continuous variable in this macro.
  • %makespl: SAS code to run makespl macro (SAS version 9 or above)
  • %makespl: Documentation and instructions for using makespl