Skip to Main Content
Statistical Programming in SAS
book

Statistical Programming in SAS

by John Bailer
April 2015
Intermediate to advanced content levelIntermediate to advanced
460 pages
14h 45m
English
SAS Institute
Content preview from Statistical Programming in SAS
Chapter 8: Formatting Variables, Recoding Variables, and Writing Programs 285
because -99≤53), and missing observations are TRUE (possibly a surprise because you
might not know that missing (.)≤53).
The third and fourth methods behave as expected. An if check for nonmissing values
and a valid range is conducted first. If the value passes this check, then the categories are
assigned following the first two methods of assigning a category. The fourth method uses
an IF-THEN-ELSE construct. The code is a bit longer, but it might be easier for you to
understand. The bottom line is always test your code with boundary, invalid, and missing
cases ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Elementary Statistics Using SAS

Elementary Statistics Using SAS

Sandra D. Schlotzhauer

Publisher Resources

ISBN: 9781607645047