Hello,everone. I am new to SAS and learning GWAS, I want to do followed things in SAS program: Using “X_Y” present the genotype with the these form and convert them into numeric, like “A_G"= 0, "X_X" present “A_A"=1, and "Y_Y" as "G_G"=2, Moreover, I have thousands of these data. The same, set “G_C”=0 (like form of X_Y), “G_G”=1(X_X),“C_C”=2(Y_Y) colunm by colunm. My SAS program followed. My confusion is how to define the form (X_Y), (X_X), (Y_Y), them i can select all the observations with the same format in SAS. I do a loop to convert the genotype into 0, 1, 2, but only including the genotype 'AA', 'AG', 'AC' This one i want to use XY to define a form to selecting genotype with the same format.
... View more