O'Reilly logo

Longitudinal Data and SAS by EdD Ron Cody

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

7   Restructuring SAS Data Sets Using Arrays

Introduction

Creating a New Data Set with Several Observations per Subject from a Data Set with One Observation per Subject

Another Example of Creating Multiple Observations from a Single Observation

Going from One Observation per Subject to Many Observations per Subject Using Multidimensional Arrays

Demonstrating the Use of a Multidimensional Array

An Alternative Program

Another Example of a Multidimensional Array

Introduction

One approach to working with longitudinal data sets is to restructure the data set—either going from one observation per subject (or other unit of analysis) to several or vice versa. For example, you may have several diagnosis codes in a single observation (visit) and want to ...

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