O'Reilly logo

Statistical Programming with SAS/IML Software by Rick Wicklin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3. Programming Techniques for Data Analysis

Contents

  • 3.1 Overview of Programming Techniques 55

  • 3.2 Reading and Writing Data 56

    • 3.2.1 Creating Matrices from SAS Data Sets 56

    • 3.2.2 Creating SAS Data Sets from Matrices 58

  • 3.3 Frequently Used Techniques in Data Analysis 59

    • 3.3.1 Applying a Variable Transformation 59

    • 3.3.2 Locating Observations That Satisfy a Criterion 60

    • 3.3.3 Assigning Values to Observations That Satisfy a Criterion 65

    • 3.3.4 Handling Missing Values 65

    • 3.3.5 Analyzing Observations by Categories 68

  • 3.4 Defining SAS/IML Modules 72

    • 3.4.1 Function and Subroutine Modules 72

    • 3.4.2 Local Variables 73

    • 3.4.3 Global Symbols 74

    • 3.4.4 Passing Arguments by Reference 74

    • 3.4.5 Evaluation of Arguments 75

    • 3.4.6 Storing Modules 76

    • 3.4.7 The IMLMLIB Library of ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required