The DO Loop
Statistical programming in SAS with an emphasis on SAS/IML programs![The essential guide to bootstrapping in SAS Process flow diagram shows how to resample data to create a bootstrap distribution.](https://blogs.sas.com/content/iml/files/2018/12/bootstrapSummary-702x336.png)
This article describes best practices and techniques that every data analyst should know before bootstrapping in SAS. The bootstrap method is a powerful statistical technique, but it can be a challenge to implement it efficiently. An inefficient bootstrap program can take hours to run, whereas a well-written program can give
![Visualize Christmas songs](https://blogs.sas.com/content/iml/files/2018/12/VizXmasSong3-600x336.png)
The best way to spread Christmas cheer is singing loud for all to hear! -Buddy in Elf In the Christmas movie Elf (2003), Jovie (played by Zooey Deschanel) must "spread Christmas cheer" to help Santa. She chooses to sing "Santa Claus is coming to town," and soon all of New
![When is a histogram not a histogram? When it's a table!](https://blogs.sas.com/content/iml/files/2018/12/histtable1-702x336.png)
Recently a SAS programmer wanted to obtain a table of counts that was based on a histogram. I showed him how you can use the OUTHIST= option on the HISTOGRAM statement in PROC UNIVARIATE to obtain that information. For example, the following call to PROC UNIVARIATE creates a histogram for
![5 tips for customizing legends in PROC SGPLOT in SAS](https://blogs.sas.com/content/iml/files/2018/11/legendTip5-640x336.png)
When a graph includes several markers or line styles, it is often useful to create a legend that explains the relationship between the data and the symbols, color, and line styles in the graph. The SGPLOT procedure does a good job of automatically creating and placing a legend for most
![Singular parameterizations, generalized inverses, and regression estimates](https://blogs.sas.com/content/iml/files/2018/11/ginv8.png)
I remember the first time I used PROC GLM in SAS to include a classification effect in a regression model. I thought I had done something wrong because the parameter estimates table was followed by a scary-looking note: Note: The X'X matrix has been found to be singular, and a
![A funnel plot for immunization rates](https://blogs.sas.com/content/iml/files/2018/11/funnelimmun1-643x336.png)
Last week my colleague, Robert Allison, visualized data regarding immunization rates for kindergarten classes in North Carolina. One of his graphs was a scatter plot that displayed the proportion of unimmunized students versus the size of the class for 1,885 kindergarten classes in NC. This scatter plot is the basis