A step of the RcppExports implementation. No other function in the package calls it.
See the file header for the source the module follows.
Arguments
- D
Passed to .Call.
- with_replacement
Passed to .Call.
- caliper
Passed to .Call.
- n_neighbors
Passed to .Call.
Value
The value of .Call.
Examples
D <- matrix(c(0.1, 0.5, 0.9,
0.4, 0.2, 0.8), 2, byrow = TRUE) # treated x control distances
morie_matching_nn_select_cpp(D, FALSE, Inf, 1L)
#> $treated_pos
#> [1] 1 2
#>
#> $control_pos
#> [1] 1 2
#>
#> $distance
#> [1] 0.1 0.2
#>