Hi,
I have my data the following way:

y     A   B   C
0     1    1   2
0     1    2   1
1     1    1   2
0     1    1   2
1     1    1   2
1     1    2   1
0     1    2   2
.
.
.
And so on.  How can I make my data look like the following:
y   A  B  C
2   1   1  2
1   1   2  1
0   1   2   2
.
.
.

In other words how can I change my ungrouped cases into grouped cases?
Thanks!
Chris

	[[alternative HTML version deleted]]

