Posts Tagged ‘ Getting Started ’

A simple trick to construct symmetric intervals

April 10, 2017
By
A simple trick to construct symmetric intervals

Many intervals in statistics have the form p ± δ, where p is a point estimate and δ is the radius (or half-width) of the interval. (For example, many two-sided confidence intervals have this form, where δ is proportional to the standard error.) Many years ago I wrote an article

The post Read more »

Tags: , , ,
Posted in SAS | Comments Off on A simple trick to construct symmetric intervals

LEAVE and CONTINUE: Two ways to control the flow in a SAS DO loop

March 15, 2017
By

SAS programmers who have experience with other programming languages sometimes wonder whether the SAS language supports statements that are equivalent to the "break" and "continue" statements in other languages. The answer is yes. The LEAVE statement in the SAS DATA step is equivalent to the "break" statement. It provides a

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on LEAVE and CONTINUE: Two ways to control the flow in a SAS DO loop

An easy way to run thousands of regressions in SAS

February 13, 2017
By
An easy way to run thousands of regressions in SAS

A common question on SAS discussion forums is how to repeat an analysis multiple times. Most programmers know that the most efficient way to analyze one model across many subsets of the data (perhaps each country or each state) is to sort the data and use a BY statement to

The post Read more »

Tags: , , ,
Posted in SAS | Comments Off on An easy way to run thousands of regressions in SAS

ODS OUTPUT: Store any statistic created by any SAS procedure

January 9, 2017
By
ODS OUTPUT: Store any statistic created by any SAS procedure

In the beginning SAS created procedures and output. The output was formless and void. Then SAS said, "Let there be ODS," and there was ODS. Customers saw that ODS was good, and SAS separated the computation from the display and management of output. The preceding paragraph oversimplifies the SAS Output

The post Read more »

Tags: ,
Posted in SAS | Comments Off on ODS OUTPUT: Store any statistic created by any SAS procedure

Solve linear programming problems in SAS

December 19, 2016
By
Solve linear programming problems in SAS

In some applications, you need to optimize a linear objective function of many variables, subject to linear constraints. Solving this problem is called linear programming or linear optimization. This article shows two ways to solve linear programming problems in SAS: You can use the OPTMODEL procedure in SAS/OR software or

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on Solve linear programming problems in SAS

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 bin a numerical variable into categories?

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on Use SAS formats to bin numerical variables

Statistical model building and the SELECT procedures in SAS

July 25, 2016
By

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 Read more »

Tags: ,
Posted in SAS | Comments Off on Statistical model building and the SELECT procedures in SAS

Do you write unnecessary SAS statements?

July 20, 2016
By

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 Read more »

Tags: , ,
Posted in SAS | Comments Off on Do you write unnecessary SAS statements?

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.

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