s-news
[Top] [All Lists]

Re: SAS Programming Tip from SAS Certified Professional - Sunil

To: GuptaProgramming@cs.com
Subject: Re: SAS Programming Tip from SAS Certified Professional - Sunil
From: Frank E Harrell Jr <f.harrell@vanderbilt.edu>
Date: Thu, 07 Jul 2005 12:09:38 -0500
Cc: s-news@lists.biostat.wustl.edu
In-reply-to: <ce.6bf08325.2ffea0ab@cs.com>
References: <ce.6bf08325.2ffea0ab@cs.com>
User-agent: Debian Thunderbird 1.0.2 (X11/20050602)
GuptaProgramming@cs.com wrote:
   Hi SAS Users,

I thought you might be interested in this tip I wrote for SAS. It is one of many useful techniques in my latest book, Sharpening Your SAS Skills, (www.crcpress.com).

SAS Programming Tip from SAS Certified Professional - Sunil Gupta

When do I use a WHERE statement versus an IF statement to subset a data set?

When programming in SAS, there is almost always more than one way to accomplish a task. Beginning programmers may think that there is no difference between using the WHERE statement and the IF statement to subset your data set. Knowledgeable programmers know that, depending on the situation, sometimes one statement is more appropriate than the other.

This list has nothing to do with SAS. It has to do with statistical software that is about 10 years ahead of SAS in functionality.

--
Frank E Harrell Jr   Professor and Chair           School of Medicine
                     Department of Biostatistics   Vanderbilt University

<Prev in Thread] Current Thread [Next in Thread>