Description Usage Arguments Value Examples
View source: R/MinDistMatch_function.R
Takes in a matrix and runs through it matching rows to columns with small entries. The smallest one is matched first, and it continues on.
1 | MinDistMatch(M, caliper = NULL)
|
M |
A non-negative matrix (T x C) |
caliper |
The caliper controls how far apart with respect to their M entry matched pairs can be. When set to NULL, all possible matches with finite M entry are taken. If set to a number, no entries are allowed to be matched if larger than caliper. |
An ordered matrix of the row and column indices that are matched.
1 2 3 4 | set.seed(1)
D <- matrix(rexp(800, rate = 0.5), 20, 40)
MinDistMatch(D, caliper = NULL)
MinDistMatch(D, caliper = 0.1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.