04-16-2013 11:19 AM
Did any one of you encounter a situation where SAS renders a graph showing "unknown" instead of the true values?
Please see attached.
And the code that creates:
|ods graphics / reset width=5in imagename="Cancer" imagefmt=png|
title "Prevalence of Something Bad";
proc sgplot data=my_data;
|series x=year y=something_bad_avg / markers;|
|yaxis values=(0 to .5 by .1);|
|xaxis values=(2000 to 2011 by 1);|
Any idea what would cause this?
Actually, to be more concise, is not the plot procedure that causes the problem...but the proc means output lists "unknown" as possible values....
See another attachment.
04-16-2013 11:32 AM
So, in the first step there is a proc means on the data, by year, that will list the average of a variable for each year.
That said average is then plotted.
So, the format is a number.