Example 6: Transposing Data for Statistical Analysis
Features:COPY statement
VAR statement
This example arranges data to make it suitable for either a multivariate or a univariate
repeated-measures analysis.
The data is from Chapter 8, “Repeated-Measures Analysis of Variance,” in SAS System
for Linear Models, Third Edition.
Program 1
options nodate pageno=1 linesize=80 pagesize=40;
data weights;
input Program $ s1-s7;
datalines;
CONT 85 85 86 85 87 86 87
CONT 80 79 79 78 78 79 78
CONT 78 77 77 77 76 76 77
CONT 84 84 85 84 83 84 85
CONT 80 81 80 80 79 79 80
RI 79 79 79 80 80 78 80
RI 83 83 85 85 86 87 87
RI 81 83 82 82 83 83 82
RI 81 81 81 82 82 83 81
RI 80 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.