The DO Loop
Statistical programming in SAS with an emphasis on SAS/IML programs![How to create a library of functions in PROC IML](https://blogs.sas.com/content/iml/files/2017/01/AdvancedAnalytics-1.png)
What is the best way to share SAS/IML functions with your colleagues? Give them the source code? Create a function library that they can use? This article describes three techniques that make your SAS/IML functions accessible to others. As background, remember that you can define new functions and subroutines in
![Generate combinations in SAS](https://blogs.sas.com/content/iml/files/2013/09/t_combin1.png)
Last week I described how to generate permutations in SAS. A related concept is the "combination." In probability and statistics, a combination is a subset of k items chosen from a set that contains N items. Order does not matter, so although the ordered triplets (B, A, C) and (C,
![Compute contours of the bivariate normal CDF](https://blogs.sas.com/content/iml/files/2017/01/AdvancedAnalytics-1.png)
This is the last post in my recent series of articles on computing contours in SAS. Last month a SAS customer asked how to compute the contours of the bivariate normal cumulative distribution function (CDF). Answering that question in a single blog post would have resulted in a long article,
![Generate permutations in SAS](https://blogs.sas.com/content/iml/files/2013/09/t_perms1.png)
I've written several articles that show how to generate permutations in SAS. In the SAS DATA step, you can use the ALLPEM subroutine to generate all permutations of a DATA step array that contain a small number (18 or fewer) elements. In addition, the PLAN procedure enables you to generate
![The difference between frequencies and weights in regression analysis](https://blogs.sas.com/content/iml/files/2013/09/freqdatagraph.png)
This week I read an interesting blog post that led to a discussion about specifying the frequencies of observations in a regression model. In SAS software, many of the analysis procedures contain a FREQ statement for specifying frequencies and a WEIGHT statement for specifying weights in a weighted regression. Theis
![Convert a string into a vector of characters](https://blogs.sas.com/content/iml/files/2013/08/substr1.png)
Sometimes it is useful in the SAS/IML language to convert a character string into a vector of one-character values. For example, you might want to count the frequency distribution of characters, which is easy when each character is an element of a vector. The question of how to convert a