Click here to see the SAS code.
Click here to see the example.

Click here to see the blank basketball court image.

---------------------------------------------------------------

Of course, you've all heard about college professors using SAS to 
predict which college basketball team is going to win the national 
championship ...


How about using SAS to analyze the likelihood of making a basket 
from different locations on the floor? (and for the NBA ... which 
has more $$$ to pay for analytics!!!) 

Someone forwarded me this very interesting article about Kirk Goldsberry, 
who is doing this kind of graphical analytics (albeit, without SAS):

http://flowingdata.com/2012/03/12/geography-of-the-basketball-court/


Well, not wanting SAS to be left out of the party, I decided to come up with 
a way to do this kind of graphical analytics using SAS! 

I found an image of the NBA basketball court, and decided on a coordinate 
system where 1-ft on the court corresponded to 1 'unit', and created a 
gmap of the same size & proportions as the image, and then I could place 
'things' (such as the image of the basketball court, and colored markers) 
on the map in the desired location.

And then, after a marathon session of estimating the size & color of each 
box in Kirk's graphic (since I didn't have access to his numeric data), 
I came up with this following SAS/Graph version!

-----

And, if you're interested in this area of analysis, here's a similar study
done by researchers at NC State University:

http://www4.stat.ncsu.edu/~reich/papers/rhcr.pdf


Back to Samples Index