14.03.2014 Views

Using JMP - SAS

Using JMP - SAS

Using JMP - SAS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

176 Reshape Data Chapter 6<br />

Stack Columns<br />

Example of Stacking into More than One Column<br />

Suppose that a researcher has data on blood pressure readings. The readings were taken over three days:<br />

Monday, Wednesday, and Friday. Three readings were taken each day, at 8am, 12pm, and 6pm.<br />

1. Open the Blood Pressure.jmp sample data table.<br />

Each BP (blood pressure) column is delineated according to the date and time. The BP 8M column<br />

corresponds to readings that were taken at 8am on Monday. The BP 12W column corresponds to<br />

readings that were taken on 12pm on Wednesday, and so on. The researcher wants to stack all of the<br />

blood pressure columns into three columns that correspond to each day: Monday, Wednesday, and<br />

Friday.<br />

2. Select Tables > Stack.<br />

3. Select all of the BP readings and click Stack Columns.<br />

The order of the columns reflects the way that the columns in the series should be grouped.<br />

4. Select Multiple series stack.<br />

5. Next to Number of Series, type 3.<br />

6. Because you want to stack the columns vertically, select Contiguous.<br />

7. Rename the Stacked Data Column from Data to BP (for blood pressure).<br />

8. Rename the Source Label Column from Label to Day.<br />

Figure 6.10 Completed Stack Window

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!