Dear all, I am new to SAS. First of all, here is a sample of the data: Pairs Instrument type Issuer name (same) YTM 1 A X 3,459742 1 B X 2.8651 2 A Y 3,464001 2 B Y 2,2493 3 A Z 2,6682 3 B Z 4,623 4 A T 2,752 4 B T 3,86234 The idea is to do a descriptive statistics to compare A and B. A and B must be from the same issuer. To do so, I formed pairs. I couldn't find a command that would give the mean difference between the YTMs of A and B as follows : YTMb A (i)-YTM B (i) where i is the pair. Logically, I would use the proc ttest but the difference in YTM must be only from the same pair. In the result, the diff(A-B) should be only based on a two by two difference from the same pair. I hope I am clear. Thank you for your help.
... View more