{"id":34,"date":"2021-02-22T15:29:12","date_gmt":"2021-02-22T20:29:12","guid":{"rendered":"http:\/\/blogs.bu.edu\/gagnon\/?p=34"},"modified":"2022-04-20T14:50:04","modified_gmt":"2022-04-20T18:50:04","slug":"producing-publication-ready-spline-plots","status":"publish","type":"post","link":"https:\/\/blogs.bu.edu\/gagnon\/2021\/02\/22\/producing-publication-ready-spline-plots\/","title":{"rendered":"Producing Publication-Ready Spline Plots"},"content":{"rendered":"<p>Here is a set of SAS macros for producing publication-ready spline plots.<br \/>\n<a href=\"\/gagnon\/files\/2021\/02\/Spline1.png\"><img loading=\"lazy\" src=\"\/gagnon\/files\/2021\/02\/Spline1-300x202.png\" alt=\"Spline1\" width=\"300\" height=\"202\" class=\"alignnone size-medium wp-image-35\" srcset=\"https:\/\/blogs.bu.edu\/gagnon\/files\/2021\/02\/Spline1-300x202.png 300w, https:\/\/blogs.bu.edu\/gagnon\/files\/2021\/02\/Spline1.png 397w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\nThis work was inspired by the GLMCURV9 macro by Donna Spiegelman et al. which can be found at: <a href=\"https:\/\/www.hsph.harvard.edu\/donna-spiegelman\/software\/glmcurv9\/\" rel=\"noopener\" target=\"_blank\">Harvard SPH<\/a>. This set of macros relies on SAS procedures and functions that were not available when GLMCURV9 was written, most notably in that\u00a0they don&#8217;t rely on PROC IML. These macros also do not rely on SASGRAPH procedures, instead using PROC SGPLOT and PROC SGPANEL for graphics displays.<\/p>\n<p>Note also that these macros are not horribly complicated or long, so they should be readily modifiable by the user.<\/p>\n<p>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.<\/p>\n<p>There is a rather extensive README file, which describes the macros and shows sample output.<\/p>\n<p><a href=\"\/gagnon\/files\/2021\/02\/README-Restricted-Cubic-Spline-Plots.pdf\">README Restricted Cubic Spline Plots<\/a><\/p>\n<p>There is also the combined macro file, demo program and sample data set. The latest version can be found here along with other macros: <a href=\"https:\/\/people.bu.edu\/gagnon\/Macros.htm\">https:\/\/people.bu.edu\/gagnon\/Macros.htm<\/a><\/p>\n<p>These macros are released &#8220;as-is&#8221; and may be used freely.\u00a0 Please reference this web page for attribution.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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\u00a0they don&#8217;t [&hellip;]<\/p>\n","protected":false},"author":4379,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.bu.edu\/gagnon\/wp-json\/wp\/v2\/posts\/34"}],"collection":[{"href":"https:\/\/blogs.bu.edu\/gagnon\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.bu.edu\/gagnon\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.bu.edu\/gagnon\/wp-json\/wp\/v2\/users\/4379"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.bu.edu\/gagnon\/wp-json\/wp\/v2\/comments?post=34"}],"version-history":[{"count":6,"href":"https:\/\/blogs.bu.edu\/gagnon\/wp-json\/wp\/v2\/posts\/34\/revisions"}],"predecessor-version":[{"id":51,"href":"https:\/\/blogs.bu.edu\/gagnon\/wp-json\/wp\/v2\/posts\/34\/revisions\/51"}],"wp:attachment":[{"href":"https:\/\/blogs.bu.edu\/gagnon\/wp-json\/wp\/v2\/media?parent=34"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.bu.edu\/gagnon\/wp-json\/wp\/v2\/categories?post=34"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.bu.edu\/gagnon\/wp-json\/wp\/v2\/tags?post=34"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}