The SAS analytical documentation has a new look. Beginning with the 14.2 release of the SAS analytical products (which shipped…

## Tag: **Tips and Techniques**

For SAS programmers, the PUT statement in the DATA step and the %PUT macro statement are useful statements that enable…

Do you want to create customized SAS graphs by using PROC SGPLOT and the other ODS graphics procedures? An essential…

Every year near Halloween I write an article in which I demonstrate a simple programming trick that is a real…

Graphs enable you to visualize how the predicted values for a regression model depend on the model effects. You can…

I got several positive comments about a recent tip, “How to fit a variety of logistic regression models in SAS.”…

Optimization is a primary tool of computational statistics. SAS/IML software provides a suite of nonlinear optimizers that makes it easy…

SAS programmers sometimes ask, “How do I create a design matrix in SAS?” A design matrix is a numerical matrix…

Last week Sanjay Matange wrote about a new SAS 9.4m3 option that enables you to show all categories in a…

A common question on SAS discussion forums is how to compute a moving average in SAS. This article shows how…

Last week my colleague Chris Hemedinger published a blog post that described how to use the ODS LAYOUT GRIDDED statement…

Statistical programmers often need to evaluate complicated expressions that contain square roots, logarithms, and other functions whose domain is restricted.…

Every year near Halloween I write a trick-and-treat article in which I demonstrate a simple programming trick that is a…

I’ve previously written about how to generate a sequence of evenly spaced points in an interval. Evenly spaced data is…

Statistical programmers often have to use the results from one SAS procedure as the input to another SAS procedure. Because…

The title of this blog post might seem strange, but I occasionally need to compute the number of digits in…

One of my presentations at SAS Global Forum 2015 was titled “Ten Tips for Simulating Data with SAS”. The paper…

When using SAS to format a number as a percentage, there is a little trick that you need to remember:…

Base SAS contains many functions for processing strings, and you can call these functions from within a SAS/IML program. However,…

I previously wrote about the best way to suppress output from SAS procedures. Suppressing output is necessary in simulation and…

Did you know that if you have set multiple titles in SAS, that there is an easy way to remove…

The SAS DATA step supports multidimensional arrays. However, matrices in SAS/IML are like mathematical matrices: they are always two dimensional.…

The other day I was doing some computations that caused me to wonder, “What is the smallest power of 2…

Many people know that the SAS/IML language enables you to read data from and write results to multiple SAS data…

The SAS/IML language is used for many kinds of computations, but three important numerical tasks are integration, optimization, and root…

Last week, as part of an article on how spammers generate comments for blogs, I showed how to generate random…

My previous post described how to use the “missing response trick” to score a regression model. As I said in…

A fundamental operation in statistical data analysis is to fit a statistical regression model on one set of data and…

Vector languages such as SAS/IML, MATLAB, and R are powerful because they enable you to use high-level matrix operations (matrix…

If you write an n x p matrix from PROC IML to a SAS data set, you’ll get a data…