Hello;
I have been stuck with this problem for a while.
I have data like this:
id1 marker1 marker2 response
1 CC AG 0
2 CT AA 1
3 CC GG 0
4 TT AA 1
....
the desired output is:
M a b c d e f
marke1 2 0 0 0 1 1
marker2 0 1 1 2 0 0
M is the name if the markers
for marker1
a = number of CC in 0
b= number of CC in 0
c= number of CT in 0
d = number of CC in 1
e= number of CT in 1
f= number of TT in 1
for marker2
a = number of AA in 0
b= number of AG in 0
c= number of GG in 0
d = number of AA in 1
e= number of AG in 1
f= number of GG in 1
In the dataset I have several markers
I tried some proc freq followed by proc transpose but was stuck.
I would appreciate some help
Thanks
Z
I have been stuck with this problem for a while.
I have data like this:
id1 marker1 marker2 response
1 CC AG 0
2 CT AA 1
3 CC GG 0
4 TT AA 1
....
the desired output is:
M a b c d e f
marke1 2 0 0 0 1 1
marker2 0 1 1 2 0 0
M is the name if the markers
for marker1
a = number of CC in 0
b= number of CC in 0
c= number of CT in 0
d = number of CC in 1
e= number of CT in 1
f= number of TT in 1
for marker2
a = number of AA in 0
b= number of AG in 0
c= number of GG in 0
d = number of AA in 1
e= number of AG in 1
f= number of GG in 1
In the dataset I have several markers
I tried some proc freq followed by proc transpose but was stuck.
I would appreciate some help
Thanks
Z