10-30-2017 10:54 AM
How do you change the graph setting for Proc phreg? I need the lines on the graph not be different colors, but instead be different dashes (ex. one solid, one shortdash, one linedash) so the graph can be seen in greyscale. I'd also like to change the Y-axis (which is survival probability) to show from 0.75 to 1 instead of from 0 to 1.
Any advise helps! I've searched a bunch of stuff and could only find code for proc lifetest or sgplots, but I specifically need proc phreg.
Current code I'm using is below:
proc phreg data = stagelib.predicted1 plots(overlay timerange = 0, 10) = survival;
model survyr*NETdeath(0) = surgtype grade2 stage ps;
baseline covariates=estimated survival=_all_ / rowid=ID ;
label survyr = "Time (Years)";
title "p-NET Specific Kaplan-Meier Curves by Surgery Strategy";
Need further help from the community? Please ask a new question.