Case Study 6.1: A Discrimination Case 
------------------------------------------------------------------
Tables: 

Contribution by Promotion:

                              Promoted     Not Promoted   
    
    Contributed to Winner            6     0    
   
    Did Not Contribute to Winner     1     3    
   
Candidate Ranking (1 = highest, D = plaintiff):
   
     Candidate     A     B     C     D     E     F     G     H     I     J    
   
     Rank          1     2     3     4     5     6     7     8     8     8    
   
Contribution by Change in Job Condition:

                                  Positive  Negative   Unknown    
   
    Contributed to Winner                4         0         2    
   
    Did Not Contribute to Winner         0         7         0    
   
    Unknown                              1         9         2    

------------------------------------------------------------------

SAS PROGRAM:

  options ls=78;  
  
  data a;  
     input promote contrib kount ;  
     cards;  
     1 1 6  
     1 2 1  
     2 1 0  
     2 2 3  
     ;  
     
  proc freq;  
    tables promote*contrib / chisq exact ; 
    weight kount ;
     
  data b;  
     input contrib jobcond kount ;  
     cards;  
     1 1 4  
     1 2 0  
     1 3 2  
     2 1 0  
     2 2 7  
     2 3 0  
     3 1 1  
     3 2 9  
     3 3 2  
     ;  
  proc freq;  
    tables contrib*jobcond / chisq exact ; 
    weight kount ;
 endsas ;