matching_mt1 | R Documentation |
matching_mt1()
implements many-to-one matching between
two groups of individuals with preferences specified by either a pair of
data frames or a pair of data files (csv, tsv, or table).
matching_mt1(
df_many,
df_one,
capacity = NULL,
capacity_df = NULL,
df_type = NULL,
header = NULL,
sep = NULL,
algorithm = "DA",
verbose = TRUE
)
df_many |
A data frame or a data file containing preferences of the proposers. |
df_one |
A data frame or a data file containing preferences of the proposed. |
capacity |
A value specifies how many people each of the proposed
accepts as their matches. Give a value to this parameter when the
capacity is constant among the proposed. Otherwise, specify
|
capacity_df |
A data frame specifying how many people each of the
proposed accepts as their matches. The first column must be the name
of the proposed, which must match the first column of |
df_type |
Type of |
header |
A logical value showing if the data file has the header
(variable names) row. If not specified, default is |
sep |
The field separator character. Values on each line of the
file are separated by this character. If not specified,
default is |
algorithm |
A algorithm for matching. |
verbose |
If |
A list of "matching" class containing (1) an extended data frame of the matching results, (2) a character string showing which algorithm was used, (3) a character string of the matching results, (4) a character string of the history of matching steps, and (5) a list of preferences of each group.
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.