matching: data frame or matrix of dimension (min[nColleges, nStudents]) x 2 containing in column 1 the colleges and in column 2 the students with each row forming a couple.
c.prefs: matrix of dimension nStudents x nColleges with column j containing college j'th ranking over students in decreasing order of preferences.
s.prefs: matrix of dimension nColleges x nStudents with column j containing student j'th ranking over colleges in decreasing order of preferences.
nColleges: integer indicating the number of colleges
nStudents: integer indicating the number of students
Returns
stabchk returns a data frame with as many rows as blocking pairs were found. Column 1 indicates the college and column 2 indicate the student of the blocking pairs. Returns NULL if no blocking pair is found.