The DO Loop
Statistical programming in SAS with an emphasis on SAS/IML programs![Extreme values: What is an extreme value for normally distributed data?](https://blogs.sas.com/content/iml/files/2019/07/extremeval8-640x336.png)
Is 4 an extreme value for the standard normal distribution? In high school, students learn the famous 68-95-99.7 rule, which is a way to remember that 99.7 percent of random observation from a normal distribution are within three standard deviations from the mean. For the standard normal distribution, the probability
![Write numeric and character matrices to a data set from SAS/IML](https://blogs.sas.com/content/iml/files/2017/01/ProgrammingTips-2.png)
In the SAS/IML language, a matrix contains data of one type: numeric or character. If you want to create a SAS data set that contains mixed-type data (numeric and character), SAS/IML 15.1 provides support to write multiple matrices to a data set by using a single statement. Specifically, the CREATE
![Create a discrete heat map with PROC SGPLOT](https://blogs.sas.com/content/iml/files/2019/07/HeatMapSgplot4-640x336.png)
Heat maps have many uses. You can use a heat map to visualize correlation matrices, to visualize longitudinal data ("lasagna plots"), and to visualize counts in any two-dimensional table. As of SAS 9.4m3, you can create heat maps in SAS by using the HEATMAP and HEATMAPPARM statements in PROC SGPLOT.
![Find the center of each cell in a mosaic plot](https://blogs.sas.com/content/iml/files/2019/07/mosaicanno3-640x336.png)
I recently showed how to create an annotation data set that will overlay cell counts or percentages on a mosaic plot. A mosaic plot is a visual representation of a cross-tabulation of observed frequencies for two categorical variables. The mosaic plot with cell counts is shown to the right. The
![How to add an annotation to a mosaic plot in SAS](https://blogs.sas.com/content/iml/files/2019/07/mosaicanno3-640x336.png)
The mosaic plot is a graphical visualization of a frequency table. In previous articles, I showed how to create a mosaic plot in SAS by using PROC FREQ and how to define a template in the Graph Template Language (GTL) by using the MOSAICPARM statement. This article shows how to
![Create a custom informat in SAS](https://blogs.sas.com/content/iml/files/2017/01/ProgrammingTips-2.png)
An informat helps you read data into a SAS data set. SAS supports more than 100 informats. The most common informats are related to dates and times and make it easy to read an input string such as 28JAN2001 and convert it to a SAS date such as 15003. Yet