8   Restructuring SAS Data Sets Using PROC TRANSPOSE

Introduction

Going from One Observation to Several Observations

Another Example of Creating Multiple Observations from a Single Observation

Going from One Observation per Subject to Many Observations per Subject

Creating a Data Set with One Observation per Subject from a Data Set with Multiple Observations per Subject

Introduction

Chapter 7 described how to restructure SAS data sets using DATA step programming. This is usually the most flexible way to get the job done. However, PROC TRANSPOSE was designed specifically to perform one-to-many and many-to-one transformations. This author usually reverts back to the comfort of the DATA step—doing what most people do, using what they are most comfortable ...

Get Longitudinal Data and SAS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.