Posts Tagged ‘ Getting Started ’

Use SAS formats to bin numerical variables

August 8, 2016
By
Use SAS formats to bin numerical variables

SAS formats are flexible, dynamic, and have many uses. For example, you can use formats to count missing values and to change the order of a categorical variable in a table or plot. Did you know that you can also use SAS formats to recode a variable or to bin […] The post Use SAS formats to bin numerical variables appeared first on The DO Loop.

Read more »

Statistical model building and the SELECT procedures in SAS

July 25, 2016
By
Statistical model building and the SELECT procedures in SAS

Last week I read an interesting paper by Bob Rodriguez: "Statistical Model Building for Large, Complex Data: Five New Directions in SAS/STAT Software." In it, Rodriguez summarizes five modern techniques for building predictive models and highlights recent SAS/STAT procedures that implement those techniques. The paper discusses the following high-performance (HP) […] The post Statistical model building and the SELECT procedures in SAS appeared first on The DO Loop.

Read more »

Do you write unnecessary SAS statements?

July 20, 2016
By
Do you write unnecessary SAS statements?

I'm addicted to you. You're a hard habit to break. Such a hard habit to break. —  Chicago, "Hard Habit To Break" Habits are hard to break. For more than 20 years I've been putting semicolons at the end of programming statements in SAS, C/C++, and Java/Javascript. But lately I've been […] The post Do you write unnecessary SAS statements? appeared first on The DO Loop.

Read more »

Break a sentence into words in SAS

July 11, 2016
By
Break a sentence into words in SAS

Two of my favorite string-manipulation functions in the SAS DATA step are the COUNTW function and the SCAN function. The COUNTW function counts the number of words in a long string of text. Here "word" means a substring that is delimited by special characters, such as a space character, a […] The post Break a sentence into words in SAS appeared first on The DO Loop.

Read more »

The SELECT statement in the SAS DATA step

June 20, 2016
By
The SELECT statement in the SAS DATA step

Every beginning SAS programmer learns the simple IF-THEN/ELSE statement for conditional processing in the SAS DATA step. The basic If-THEN statement handles two cases: if a condition is true, the program does one thing, otherwise the program does something else. Of course, you can handle more cases by using multiple […] The post The SELECT statement in the SAS DATA step appeared first on The DO Loop.

Read more »

Grids and linear subspaces

May 31, 2016
By
Grids and linear subspaces

A grid is a set of evenly spaced points. You can use SAS to create a grid of points on an interval, in a rectangular region in the plane, or even in higher-dimensional regions like the parallelepiped shown at the left, which is generated by three vectors. You can use […] The post Grids and linear subspaces appeared first on The DO Loop.

Read more »

How to fit a variety of logistic regression models in SAS

May 23, 2016
By
How to fit a variety of logistic regression models in SAS

SAS software can fit many different kinds of regression models. In fact a common question on the SAS Support Communities is "how do I fit a <name> regression model in SAS?" And within that category, the most frequent questions involve how to fit various logistic regression models in SAS. There […] The post How to fit a variety of logistic regression models in SAS appeared first on The DO Loop.

Read more »

Create a package in SAS/IML

May 4, 2016
By
Create a package in SAS/IML

In a previous post I showed how to download, install, and use packages in SAS/IML 14.1. SAS/IML packages incorporate source files, documentation, data sets, and sample programs into a ZIP file. The PACKAGE statement enables you to install, uninstall, and manage packages. You can load functions and data into your […] The post Create a package in SAS/IML appeared first on The DO Loop.

Read more »

Save descriptive statistics for multiple variables in a SAS data set

March 28, 2016
By
Save descriptive statistics for multiple variables in a SAS data set

Descriptive univariate statistics are the foundation of data analysis. Before you create a statistical model for new data, you should examine descriptive univariate statistics such as the mean, standard deviation, quantiles, and the number of nonmissing observations. In SAS, there is an easy way to create a data set that […] The post Save descriptive statistics for multiple variables in a SAS data set appeared first on The DO Loop.

Read more »

Create dummy variables in SAS

February 22, 2016
By
Create dummy variables in SAS

A dummy variable (also known as indicator variable) is a numeric variable that indicates the presence or absence of some level of a categorical variable. The word "dummy" does not imply that these variables are not smart. Rather, dummy variables serve as a substitute or a proxy for a categorical […] The post Create dummy variables in SAS appeared first on The DO Loop.

Read more »


Subscribe

Email:

  Subscribe