Hi All, I have question in stata. my data look like this ID x1 x2 1 omni Y 1 omni 1 uro 1 omni N 1 uro Y 2 omni 2 omni N 2 uro Y 2 omni N 2 uro N . . if i want to calculate GP delay :- 1st omni (x1) Y (x2) ------------1st uro(x1) Y/N/.(x2) If not 1st omni (x1) N/. (x2)-------------1st uro (x1) Y/N/. (x2) how can i do this in stata? Thanks in advanced Regards Gorge _________________________________________________________________ Powerful Parental Controls Let your child discover the best the Internet has to offer. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSNŽ Premium right now and get the first two months FREE*.