syntax - SAS: Using WHERE / IF Statement in SGPlot -
good afternoon,
i define parameters in plot opposed generating plot values.
for example, want show sale price of data not exceeding $400,000. syntax not correct, attempt @ it. should use if, by, or statement in matter? thank you!
proc sgplot data=mydata; loess x = firstflrsf y = saleprice / group= overallqual; reg x = firstflrsf y = saleprice; saleprice =< 400000; title "first floor sf vs sales price"; run;
if's don't work in procs, where's do, have comparison operator specified incorrectly. it's <= instead of =<. remember order saying out loud, less or equal to.
proc sgplot data=sashelp.class; scatter x=height y=weight; age <= 15; run;quit;
Comments
Post a Comment