The DO Loop
Statistical programming in SAS with an emphasis on SAS/IML programs![Discrimination, accuracy, and stability in binary classifiers](https://blogs.sas.com/content/iml/files/2019/05/LogiStability3-640x336.png)
At SAS Global Forum 2019, Daymond Ling presented an interesting discussion of binary classifiers in the financial industry. The discussion is motivated by a practical question: If you deploy a predictive model, how can you assess whether the model is no longer working well and needs to be replaced? Daymond
![How to simulate data from a generalized linear model](https://blogs.sas.com/content/iml/files/2019/05/LogiSimExtraVar-640x336.png)
Here's a simulation tip: When you simulate a fixed-effect generalized linear regression model, don't add a random normal error to the linear predictor. Only the response variable should be random. This tip applies to models that apply a link function to a linear predictor, including logistic regression, Poisson regression, and
![Encodings of CLASS variables in SAS regression procedures: A cheat sheet](https://blogs.sas.com/content/iml/files/2017/01/ProgrammingTips-2.png)
SAS regression procedures support several parameterizations of classification variables. When a categorical variable is used as an explanatory variable in a regression model, the procedure generates dummy variables that are used to construct a design matrix for the model. The process of forming columns in a design matrix is called
![The normal mixture distribution in SAS](https://blogs.sas.com/content/iml/files/2019/04/normalmix1.png)
Did you know that SAS provides built-in support for working with probability distributions that are finite mixtures of normal distributions? This article shows examples of using the "NormalMix" distribution in SAS and describes a trick that enables you to easily work with distributions that have many components. As with all
![A CUSUM test for autregressive models](https://blogs.sas.com/content/iml/files/2019/04/autoreg3-702x336.png)
The CUSUM test has many incarnations. Different areas of statistics use different assumption and test for different hypotheses. This article presents a brief overview of CUSUM tests and gives an example of using the CUSUM test in PROC AUTOREG for autoregressive models in SAS. A CUSUM test uses the cumulative
![The CUSUM test for randomness of a binary sequence](https://blogs.sas.com/content/iml/files/2019/04/cusum1-640x336.png)
Many statistical tests use a CUSUM statistic as part of the test. It can be confusing when a researcher refers to "the CUSUM test" without providing details about exactly which CUSUM test is being used. This article describes a CUSUM test for the randomness of a binary sequence. You start