Bart Simpson and Regression, Part II
Here at GVSUG, we continue to promote the most cutting edge and most useful SAS tools for our members. So, with great pride, today we present part 2 of our series The Use of Bart Simpson Images in Linear Regression.
Jeff Cartier of SAS Institute today has provided us with clear proof that our earlier claims about SAS/GRAPH were incorrect. We claimed that while Excel could include a Bart Simpson image as background for a linear regression plot, SAS/GRAPH could not. Cartier’s graphics and SAS code show that SAS/GRAPH is indeed capable of this state-of-the-art statistical graphic.

Here is Jeff’s code:
But wait just a cotton-picking minute Jeff, where’s the R-squared value? Excel could do that!
Jeff Cartier of SAS Institute today has provided us with clear proof that our earlier claims about SAS/GRAPH were incorrect. We claimed that while Excel could include a Bart Simpson image as background for a linear regression plot, SAS/GRAPH could not. Cartier’s graphics and SAS code show that SAS/GRAPH is indeed capable of this state-of-the-art statistical graphic.

Here is Jeff’s code:
goptions reset=all dev=gif ftext="Akbar"The Akbar font can be downloaded here. The background image of Bart Simpson is here.
ftitle="Akbar/bo" htext=14pt htitle=18pt
vsize=5in hsize=3in;
title "Bart likes Linear Regression";
footnote j=r "Produced with SAS/Graph(r)";
axis1 minor=none;
axis2 label=(angle=90) minor=none;
symbol1 value=diamond i=rlclm95 width=2 height=2;
proc gplot data=sashelp.class;
plot Weight*Height / haxis=axis1 vaxis=axis2 autovref
iframe="c:\images\bart.png" imagestyle=tile regeqn;
run;
quit;
But wait just a cotton-picking minute Jeff, where’s the R-squared value? Excel could do that!


