Posts Tagged ‘ Statistical Programming ’

The use of SAS/IML software in published research

July 6, 2015
By
The use of SAS/IML software in published research

SAS/IML software is used by many SAS programmers, primarily for creating custom algorithms and macros that implement statistical analyses that are not built into any SAS procedure. I know that PROC IML is used regularly by pharmaceutical companies, by the financial and insurance industries, and by researchers in medical colleges

The post Read more »

Tags: ,
Posted in SAS | Comments Off on The use of SAS/IML software in published research

Everything you wanted to know about writing SAS/IML modules

June 17, 2015
By

One of the fundamental principles of computer programming is to break a task into smaller subtasks and to modularize the program by encapsulating each subtask into its own function. I have written many blog posts over the years about how to define and use functions in the SAS/IML language. I

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on Everything you wanted to know about writing SAS/IML modules

Execute SAS/IML statements that are in a file at run time

June 15, 2015
By
Execute SAS/IML statements that are in a file at run time

A feature of SAS/IML 13.2 (shipped with SAS 9.4m2, Aug 2014) is the ability to execute SAS/IML statements that are in a file. The feature is implemented by the new EXECUTEFILE subroutine. This feature is similar to the CALL EXECUTE statement. The difference is that the EXECUTEFILE subroutine reads, parses,

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on Execute SAS/IML statements that are in a file at run time

Finding observations that satisfy multiple conditions

May 11, 2015
By

A common task in data analysis is to locate observations that satisfy multiple criteria. For example, you might want to locate all zip codes in certain counties within specified states. The SAS DATA step contains the powerful WHERE statement, which enables you to extract a subset of data that satisfy

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on Finding observations that satisfy multiple conditions

Sum a series in SAS

April 22, 2015
By
Sum a series in SAS

A customer asked: Dear Rick, How do we go about summing a finite series in SAS? For example, I want to compute for various integers n ≥ 3. I want to output two columns, one for the natural numbers and one for the summation of the series. Summations arise often

The post Read more »

Tags: , , ,
Posted in SAS | Comments Off on Sum a series in SAS

Vectors that have a fractional number of elements

March 23, 2015
By
Vectors that have a fractional number of elements

The title of this article makes no sense. How can the number of elements (in fact, the number of anything!) not be a whole number? In fact, it can't. However, the title refers to the fact that you might compute a quantity that ought to be an integer, but is

The post Read more »

Tags: ,
Posted in SAS | Comments Off on Vectors that have a fractional number of elements

Matrix multiplication with missing values in SAS

March 11, 2015
By
Matrix multiplication with missing values in SAS

Sometimes I get contacted by SAS/IML programmers who discover that the SAS/IML language does not provide built-in support for multiplication of matrices that have missing values. (SAS/IML does support elementwise operations with missing values.) I usually respond by asking what they are trying to accomplish, because mathematically matrix multiplication with

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on Matrix multiplication with missing values in SAS

Three ways to add a smoothing spline to a scatter plot in SAS

February 24, 2014
By
Three ways to add a smoothing spline to a scatter plot in SAS

Like many SAS programmers, I use the Statistical Graphics (SG) procedures to graph my data in SAS. To me, the SGPLOT and SGRENDER procedures are powerful, easy to use, and produce fabulous ODS graphics. I was therefore surprised when a SAS customer told me that he continues to use the
Read more »

Tags: , ,
Posted in SAS | Comments Off on Three ways to add a smoothing spline to a scatter plot in SAS

Proc-x is looking for sponsors!

Dear readers, proc-x is looking for sponsors who would be willing to support the site in exchange for banner ads in the right sidebar of the site. If you are interested, please e-mail me at: tal.galili@gmail.com

Welcome!

SAS-X.com offers news and tutorials about the various SAS® software packages, contributed by bloggers. You are welcome to subscribe to e-mail updates, or add your SAS-blog to the site.

SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration.