Description Usage Arguments Value Examples
This function checks if a particular roommate matching is stable. A matching
is stable if there is no roommate r1
that would rather be matched to
some other roommate d2
than to his current roommate r2
and the
other roommate d2
would rather be matched to r1
than to his
current roommate d1
.
1 | roommate.checkStability(utils = NULL, pref = NULL, matching)
|
utils |
is a matrix with cardinal utilities for each individual in the
market. If there are |
pref |
is a matrix with the preference order of each individual in the
market. This argument is only required when |
matching |
is a vector of length |
true if stable, false if not
1 2 3 4 5 6 7 8 9 10 11 12 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.