Find the nearest neighbor indices for the treated and untreated for a supplied data.frame Uses the knn.index.dist function from the KernelKnn package Currently only applicable to a binary treatment coded as (1/0) In the returned matrices, the rows are indexed by NN, and the columns are the DF observations
A data frame of the features in the training sample (data.frame)
A vector of the treatment indicator (1/0 coded) in the training sample (integer)
A integer for the max k value for the of kNN. Defaults to floor(sqrt(nrow(DF))) (integer)
A data frame of the features in the test sample (data.frame)
String supplying the method (character)
A boolean flag for whether to standardize the features (logical)
A boolean flag for keeping generated distance matrices (logical)
A integer determining the number of threads used - uses openMP (integer)
A custom supplied covariance matrix for the mahalanobis distance metric (data.frame)
A list containing the index (and distance) matrices (list)