Along with the code you have, add the LCGROUP option to the SERIES to specify the variable that contains the binary values. LC stands for "LineColor". The SERIES plot has the ability to assign multiple "group" variable to the plot to control different attributes, including line color, line patterns, marker color, and marker shape.
If you want specific colors for each of the binary values, I would use a discrete attributes map to assign the color to the value. In the end, you code will look something like the following:
data my_attrmap;
retain ID "ind_colors";
input value linecolor $;
cards;
0 blue
1 red
;
run;
proc sgplot data=mydata dattrmap=my_attrmap;
series y=outcome x=time / group=type grouplc=indicator lcattrid=ind_colors;
run;
Hope this helps!
... View more