<< 1 >>
Rating:  Summary: Very Good for the Intermediate to Advanced User Review: This book is best suited for intermediate to advanced SAS programmers who need to merge or otherwise combine or modify data sets. Although the MERGE command is quite simple, it can be quite tricky if not fully understood: Merge commands may combine your data in unexpected ways that won't always show as errors in your program log. Thus, it is extrememly important to know exactly what the program is doing.There are numerous helpful examples that are divided into programming "goal," "strategy," "input data set(s)," "resulting data set," "program," and "where to go from here" (references to further discussions of the topic). As shown in the following brief excerpt, readers will benefit by knowing some programming terminology: "Goal: Within the same data set, look ahead from a variable value in one observation to return the value of the same variable in the observation that immediately follows it." Chapter 1. An Introduction to Data Relationships, Access Methods, and Techniques for Data Manipulation. Chapter 2. Combining Single Observations with Single Observations. Chapter 3. Combining a Single Observation with Multiple Observations. Chapter 4. Combining Multiple Observations with Multiple Observations. Chapter 5. Manipulating Data From a Single Source. Chapter 6. Utilities and Functions. The last two chapters emphasize modifying rather than combining data sets, and have a great deal of useful information (e.g., adding new observations to the end of a data set, simulating the LEAD function, adding a new variable that contains the frequency of a by-group value, converting character and numeric variables, producing equal-sized random samples, etc.). PROC SQL is sometimes used in the programs. The 197-page book has many well-organized examples, and includes an appendix on error checking and a useful index.
Rating:  Summary: Very Good for the Intermediate to Advanced User Review: This book is best suited for intermediate to advanced SAS programmers who need to merge or otherwise combine or modify data sets. Although the MERGE command is quite simple, it can be quite tricky if not fully understood: Merge commands may combine your data in unexpected ways that won't always show as errors in your program log. Thus, it is extrememly important to know exactly what the program is doing. There are numerous helpful examples that are divided into programming "goal," "strategy," "input data set(s)," "resulting data set," "program," and "where to go from here" (references to further discussions of the topic). As shown in the following brief excerpt, readers will benefit by knowing some programming terminology: "Goal: Within the same data set, look ahead from a variable value in one observation to return the value of the same variable in the observation that immediately follows it." Chapter 1. An Introduction to Data Relationships, Access Methods, and Techniques for Data Manipulation. Chapter 2. Combining Single Observations with Single Observations. Chapter 3. Combining a Single Observation with Multiple Observations. Chapter 4. Combining Multiple Observations with Multiple Observations. Chapter 5. Manipulating Data From a Single Source. Chapter 6. Utilities and Functions. The last two chapters emphasize modifying rather than combining data sets, and have a great deal of useful information (e.g., adding new observations to the end of a data set, simulating the LEAD function, adding a new variable that contains the frequency of a by-group value, converting character and numeric variables, producing equal-sized random samples, etc.). PROC SQL is sometimes used in the programs. The 197-page book has many well-organized examples, and includes an appendix on error checking and a useful index.
<< 1 >>
|