Contents

List of Programs

Preface

Acknowledgments

Chapter 1: The RETAIN Statement

Chapter 2: The LAG and DIF Functions

Chapter 3: FIRST. and LAST. Temporary Variables

Chapter 4: Flags and Counters

Chapter 5: Summarizing Data Using PROC MEANS and PROC FREQ

Chapter 6: Using PROC SQL with Longitudinal Data

Chapter 7: Restructuring SAS Data Sets Using Arrays

Chapter 8: Restructuring SAS Data Sets Using PROC TRANSPOSE

Chapter 9: Study One: Operations on a Clinical Database

Chapter 10: Study Two: Operations on Daily Weather Data and Ozone Levels

Chapter 11: Study Three: Study Three: Producing Summary Reports on a Library Data Set

Chapter 12: Useful Macros

Appendix: List of Data Files and SAS Data Sets

Index