%corrdemoa ----------------------------------------------------------------------- Animated Graphs of Correlation Coefficient Description This macro creates animated gif files of scatter plots with different correlation coefficients. For example, without any argument, simply call the macro will create a gif file called corrdemoa.gif in C:\temp directory. The correlation coefficients change from -1 to +1 by 0.1. The delay is set to be 25ms that controls how fast the gif file changes each of its frame. Syntax %corrdemoa(out= ,lo= ,hi= ,inc= ,size= , gopt= ,axis1= , axis2= , symbol= , plot= ,title= ) out - name of the gif file to be created, the default is c:\temp\corrdemoa.gif lo - the starting value for the correlation coefficient hi - the ending value for the correlation coefficient inc - the amount the correlation should increment by in each frame of the animation. size - the size of the gif to be created gopt - options for the "goptions" statement axis1 - options for the "axis1" statement (the x axis) axis2 - options for the "axis2" statement (the y axis) symbol - options for the "symbol" statement plot - options for the "plot" statement title - the title displayed at the top of the graph Examples %corrdemoa %corrdemoa(out="c:\temp\corrdema.gif") %corrdemoa(out="c:\temp\corrdema.gif", title="Correlation Coefficient = &costr"); Author Xiao Chen Statistical Computing and Consulting UCLA Academic Technology Services Also See Also see the web at http://www.ats.ucla.edu/stat/sas/teach/corrrelation/corr.htm Also see the macro itself from http://www.ats.ucla.edu/stat/sas/macros/corrdemoa.sas.txt