# Posts Tagged ‘ Statistical Programming ’

## Vectors that have a fractional number of elements

March 23, 2015
By

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

## Matrix multiplication with missing values in SAS

March 11, 2015
By

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

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

February 24, 2014
By

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

Tags: , ,
Posted in SAS | Comments Off

## Techniques for scoring a regression model in SAS

February 19, 2014
By

My previous post described how to use the "missing response trick" to score a regression model. As I said in that article, there are other ways to score a regression model. This article describes using the SCORE procedure, a SCORE statement, the relatively new PLM procedure, and the CODE statement.

Tags: , , , ,
Posted in SAS | Comments Off

## The missing value trick for scoring a regression model

February 17, 2014
By

A fundamental operation in statistical data analysis is to fit a statistical regression model on one set of data and then evaluate the model on another set of data. The act of evaluating the model on the second set of data is called scoring. One of first "tricks" that I

Tags: , , ,
Posted in SAS | Comments Off

## Secret Santa: What is the probability of pulling your own name from a hat?

December 4, 2013
By

Each year my siblings choose names for a Christmas gift exchange. It is not unusual for a sibling to pick her own name, whereupon the name is replaced into the hat and a new name is drawn. In fact, that "glitch" in the drawing process was a motivation for me

Tags: , ,
Posted in SAS | Comments Off

## Twelve advantages to calling R from the SAS/IML language

November 25, 2013
By

For several years, there has been interest in calling R from SAS software, primarily because of the large number of special-purpose R packages. The ability to call R from SAS has been available in SAS/IML since 2009. Previous blog posts about R include a video on how to call R

Tags: , ,
Posted in SAS | Comments Off

## Write a reusable SAS/IML module that passes values to R

November 20, 2013
By

When I call R from within the SAS/IML language, I often pass parameters from SAS into R. This feature enables me to write general-purpose, reusable, modules that can analyze data from many different data sets. I've previously blogged about how to pass values to SAS procedures from PROC IML by

Tags: , ,
Posted in SAS | Comments Off

## 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: [email protected]

## 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.

## Recent Posts

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.