Posts Tagged ‘ Macro Programming ’

Improving on a SAS programming pattern

March 23, 2012
By
Improving on a SAS programming pattern

Earlier this week I described a common programming pattern in the SAS macro language. The pattern sets up a loop for processing each distinct value of a classification variable. The program uses the PROC SQL SELECT INTO feature to populate SAS macro variables. The effect: you can roll your own
Read more »

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

Implement BY processing for your entire SAS program

March 20, 2012
By
Implement BY processing for your entire SAS program

Most SAS procedures support the BY statement, which allows you to create a report or analysis for each distinct value of a variable in your data set. The syntax is simple, and SAS procedures are usually tuned to do a good job of processing the data efficiently. However, the BY
Read more »

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

How many observations were processed by that last step?

March 15, 2012
By

A well-formed WHERE statement or subsetting IF can narrow down the output of your SAS DATA step. The SAS log does a good job of telling you how many records were processed by the action. For example, let's look at this simple DATA step with my "poor man's random sample",
Read more »

Tags: , , ,
Posted in SAS | Comments Off

Inspecting SAS macro variables in SAS Enterprise Guide

November 22, 2011
By

The SAS macro variable "inspector" is a custom task that plugs into SAS Enterprise Guide 4.3. You can use it to view the current values for all SAS macro variables that are defined within your SAS session. You can also evaluate "immediate" macro expressions in a convenient quick view window.
Read more »

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

Implement Boost Algorithm in SAS

March 29, 2010
By

 algorithms are proven to be very effective data mining tools, either used stand alone, or as a building block to handle nonlinearity, etc. Implementation of Boost algorithm in SAS is not easy to find although it is not difficult to wr...
Read more »

Tags: , , ,
Posted in SAS | Comments Off

AUC calculation using Wilcoxon Rank Sum Test

October 23, 2009
By

Accurately Calculate AUC (Area Under the Curve) in SAS for a binary classifier rank ordered data In order to calculate AUC for a given SAS data set that is already rank ordered by a binary classifier (such as linear logistic regression), where we h...
Read more »

Tags: , , ,
Posted in SAS | Comments Off

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.