Posts Tagged ‘ sas tip ’

When a variable is not a variable

April 23, 2018
By

SAS variables are variables in the statistics sense, not the computer programming sense. SAS has what many computer languages call “variables,” it just calls them “macro variables.” Knowing the difference between SAS variables and SAS macro variables...
Read more »

Tags: , , , ,
Posted in SAS | Comments Off on When a variable is not a variable

Using regular expressions to verify the pattern of character data

June 6, 2017
By

Wait!  Don't close this window.  I understand that regular expressions can be very complicated (yes, there are many books on the subject), but some basic expressions to test patterns such as zip codes or telephone numbers are not that difficult.  In addition, you can sometimes use Google to search for

The post Read more »

Tags: , , , ,
Posted in SAS | Comments Off on Using regular expressions to verify the pattern of character data

Stratified random sample: What’s efficient?

January 23, 2017
By

In a previous blog, Random Sampling: What's Efficient?, I discussed the efficiency of various techniques for selecting a simple random sample from a large SAS dataset.  PROC SURVEYSELECT easily does the job: proc surveyselect data=large out=sample method=srs /* simple random sample */ rate=.01; /* 1% sample rate */ run; Note:

The post Read more »

Tags: , , ,
Posted in SAS | Comments Off on Stratified random sample: What’s efficient?

The difference between the Subsetting IF and the IF—THEN—ELSE—IF statement

November 3, 2016
By

My river walk last week turned into a spectacular fall show. But if it rains this week in San Antonio, like the weatherman predicts, what will I do? In the coming days, I’ll be presenting at two user groups,  one in eastern Canada in Halifax, and the other all the

The post Read more »

Tags: , , ,
Posted in SAS | Comments Off on The difference between the Subsetting IF and the IF—THEN—ELSE—IF statement

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.