is_stable | R Documentation |
is_stable()
checks if a matching result is stable.
is_stable(
x = NULL,
pairs_list = NULL,
pairs_df = NULL,
proposer_pref = NULL,
proposed_pref = NULL,
verbose = FALSE
)
x |
An object of the "matching" class obtained by |
pairs_list |
An optional list of matched pairs where each element of the list is a vector of matched paris. The first element of the vector is a proposer . and the second is the person who accepted the proposal. |
pairs_df |
An optional data frame whose first column contains the
proposers' names and the second the proposed. Use |
proposer_pref |
A named list of preference of the proposer. The name
of the list must exactly same as the proposer's name, and the contents of
list must be the names of the proposed. This will be ignored if |
proposed_pref |
A named list of preference of the proposer. The name
of the list must exactly same as the name of the proposed, and the contents
of the list must be the proposers' names. This will be ignored if |
verbose |
If |
A list containing (1) a logical value showing if a matching is stable and (2) a data frame containing the information of blocking pairs, if any.
Yoshio Kamijo and Yuki Yanai yanai.yuki@kochi-tech.ac.jp
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.