Here is a set of SAS macros for producing publication-ready spline plots.

This work was inspired by the GLMCURV9 macro by Donna Spiegelman et al. which can be found at: Harvard SPH. This set of macros relies on SAS procedures and functions that were not available when GLMCURV9 was written, most notably in that they don’t rely on PROC IML. These macros also do not rely on SASGRAPH procedures, instead using PROC SGPLOT and PROC SGPANEL for graphics displays.
Note also that these macros are not horribly complicated or long, so they should be readily modifiable by the user.
All of the macros are contained in a single SAS program which also includes graphics setup code as well as four macros that can produce spline plots for either PROC GLIMMIX [generalized linear models] or PROC PHREG [survival models] with either a single curve, or multiple curves with a stratifying/effect modifying variable.
There is a rather extensive README file, which describes the macros and shows sample output.
README Restricted Cubic Spline Plots
There is also the combined macro file, demo program and sample data set. The latest version can be found here along with other macros: https://people.bu.edu/gagnon/Macros.htm
These macros are released “as-is” and may be used freely. Please reference this web page for attribution.

8 Comments
Islam, Saiful posted on October 7, 2022 at 1:27 pm
I am trying to estimate and make inferences about the prevalence ratio using a complex survey dataset. How to adjust for the design variables (i.e., weigh, cluster, strata)?
프로모션코드 posted on December 13, 2023 at 8:31 am
multiple curves with a stratifying
sv 368 posted on December 16, 2024 at 4:45 am
sv 368 tu hao la dia chi truc tiep da ga va ca cuoc uy tin hang dau Viet Nam, mang den trai nghiem tuyet voi cho nhung nguoi yeu thich bo mon da ga truyen thong. sv368-vn.co
Top88 posted on December 17, 2024 at 8:22 am
Top88 la mot trong nhung san choi truc tuyen duoc danh gia cao tren thi truong vi so huu nhieu diem manh. San choi co kho game dac sac, doi thuong da dang phuong thuc cho ca cuoc lua chon. top88.pub
95VN posted on December 18, 2024 at 8:05 am
95VN nha cai uy tin tai Viet Nam la lua chon hoan hao danh cho nhung nguoi dam me giai tri truc tuyen va mong muon trai nghiem mot nen tang ca cuoc uy tin 95vn.space
Blake Ottinger posted on February 28, 2025 at 9:44 am
Thank You. multiple curves with a stratifying
peryourhealth com posted on August 1, 2025 at 4:02 am
Wow, this is fantastic! I’ve been following your work for a while now, and every post is better than the last.
Sprunki Retake posted on October 23, 2025 at 2:58 am
Thank You. multiple curves with a stratifying