The DO Loop
Statistical programming in SAS with an emphasis on SAS/IML programs![How to examine the status of ODS destinations in SAS](https://blogs.sas.com/content/iml/files/2022/08/search-markus-winkler-unsplash-640x336.jpg)
A SAS programmer asked for help on a discussion forum: "My SAS session will not display any tables or graphs! I try to use PROC PRINT and other procedures, but no output is displayed! What can I do?" The most common reasons why you might not see any output when
![Introductory examples of Monte Carlo simulation in SAS](https://blogs.sas.com/content/iml/files/2022/07/MCElem1.png)
When I was writing Simulating Data with SAS (Wicklin, 2013), I read a lot of introductory textbooks about Monte Carlo simulation. One of my favorites is Sheldon Ross's book Simulation. (I read the 4th Edition (2006); the 5th Edition was published in 2013.) I love that the book brings together
![Monte Carlo estimates of area](https://blogs.sas.com/content/iml/files/2022/07/MCArea1-400x336.png)
I've previously shown how to use Monte Carlo simulation to estimate probabilities and areas. I illustrated the Monte Carlo method by estimating π ≈ 3.14159... by generating points uniformly at random in a unit square and computing the proportion of those points that were inside the unit circle. The previous
![A tip for visualizing the density function of a distribution](https://blogs.sas.com/content/iml/files/2022/07/QuantilePDF3-640x336.png)
It isn't easy to draw the graph of a function when you don't know what the graph looks like. To draw the graph by using a computer, you need to know the domain of the function for the graph: the minimum value (xMin) and the maximum value (xMax) for plotting
![Tips for computing right-tail probabilities and quantiles](https://blogs.sas.com/content/iml/files/2022/07/SDF1.png)
A colleague was struggling to compute a right-tail probability for a distribution. Recall that the cumulative distribution function (CDF) is defined as a left-tail probability. For a continuous random variable, X, with density function f, the CDF at the value x is F(x) = Pr(X ≤ x) = ∫
![Use ODS to arrange graphs in a panel](https://blogs.sas.com/content/iml/files/2022/07/odsgridded2-702x257.png)
A SAS programmer wanted to create a panel that contained two of the graphs side-by-side. The graphs were created by using calls to two different SAS procedures. This article shows how to select the graphs and arrange them side-by-side by using the ODS LAYOUT GRIDDED statement. The end of the