|
|
|
|
123 |
Q1 |
4 |
123 |
Q2 |
2 |
123 |
Q3 |
3 |
123 |
Q4 |
4 |
124 |
Q1 |
3 |
124 |
Q2 |
4 |
124 |
Q4 |
4 |
125 |
Q2 |
2 |
125 |
Q3 |
1 |
125 |
Q4 |
4 |
The data should be transposed into the following:
|
|
|
|
|
|
123 |
4 |
2 |
3 |
4 |
. |
124 |
3 |
4 |
. |
4 |
. |
125 |
. |
2 |
1 |
4 |
. |
Solution
In this example, there are only three subjects and give items. It is easier to re-type the data than writing a program. However, it will make a big difference when you have 2000 subjects and 200 items. Before transposing, the missing data must be filled in. The following SAS program shows you how to fill in the missing data and transpose the data.