SAS

Blogs on the SAS software

Turn off ODS when running simulations in SAS

May 24, 2013
By
Turn off ODS when running simulations in SAS

In my article "Simulation in SAS: The slow way or the BY way," I showed how to use BY-group processing rather than a macro loop in order to efficiently analyze simulated data with SAS. In the example, I analyzed the simulated data by using PROC MEANS, and I use the [...]

Read more »

Timing performance improvements due to vectorization

May 22, 2013
By
Timing performance improvements due to vectorization

Last week I discussed a program that had three nested loops that used scalar operations in the innermost loop. I mentioned that this program was not vectorized, and would therefore be slow in a matrix language such as SAS/IML, MATLAB, or R. I then went through a series of steps [...]

Read more »

Ways to multiply in the SAS/IML language

May 20, 2013
By
Ways to multiply in the SAS/IML language

For programmers who are learning the SAS/IML language, it is sometimes confusing that there are two kinds of multiplication operators, whereas in the SAS DATA step there is only scalar multiplication. This article describes the multiplication operators in the SAS/IML language and how to use them to perform common tasks [...]

Read more »

How to vectorize computations in a matrix language

May 15, 2013
By
How to vectorize computations in a matrix language

Last week someone posted an interesting question to the SAS/IML Support Community. The problem involved four nested DO loops and took hours to run. By transforming several nested DO loops into an equivalent matrix operation, I was able to reduce the run time to about one second. The process of [...]

Read more »

Forecast Update: Will 2014 be the Beginning of the End for SAS and SPSS?

May 14, 2013
By
Forecast Update: Will 2014 be the Beginning of the End for SAS and SPSS?

I recently updated my plots of the data analysis tools used in academia in my ongoing article, The Popularity of Data Analysis Software. I repeat those here and update my previous forecast of data analysis software usage. Learning to use … Continue reading →

Read more »

Use regression for a univariate analysis? Yes!

May 13, 2013
By
Use regression for a univariate analysis? Yes!

I've conducted a lot of univariate analyses in SAS, yet I'm always surprised when the best way to carry out the analysis uses a SAS regression procedure. I always think, "This is a univariate analysis! Why am I using a regression procedure? Doesn't a regression require at least two variables?" [...]

Read more »

Finding the closest pair in datat using PROC MODECLUS

May 9, 2013
By
Finding the closest pair in datat using PROC MODECLUS

    UPDATE: Rick Wicklin kindly shared his visualization efforts on the output to put a more straightforward sense on the results. Thanks. Here is the code, run after my code below. Note that this is designed for K=2.   proc iml...

Read more »

SAS, SPSS, Stata Users: Learn R from Home June 17

May 8, 2013
By
SAS, SPSS, Stata Users: Learn R from Home June 17

Has learning R been driving you a bit crazy? If so, it may be that you’re “lost in translation.” On June 17 and 19, I’ll be teaching a webinar, R for SAS, SPSS and Stata Users. With each R concept, … Continue reading →

Read more »

A three-panel visualization of a distribution

May 8, 2013
By
A three-panel visualization of a distribution

At a recent conference, I talked with a SAS customer who told me that he was using an R package to create a three-panel visualization of a distribution. Unfortunately, he couldn't remember the name of the package, and he has not returned my e-mails, so the purpose of today's article [...]

Read more »

Compute confidence intervals for percentiles in SAS

May 6, 2013
By
Compute confidence intervals for percentiles in SAS

PROC UNIVARIATE has provided confidence intervals for standard percentiles (quartiles) for eons. However, in SAS 9.3M2 (featuring the 12.1 analytical procedures) you can use a new feature in PROC UNIVARIATE to compute confidence intervals for a specified list of percentiles. To be clear, percentiles and quantiles are essentially the same [...]

Read more »

Subscribe

Email:

  Subscribe