This method creates an object of type binary_match_structure and will compute pairs. You can then
use the functions initBinaryMatchExperimentalDesignSearch
and resultsBinaryMatchSearch
to create randomized allocation vectors. For one column in X, we just sort to find the pairs trivially.
computeBinaryMatchStructure(
X,
mahal_match = FALSE,
compute_dist_matrix = NULL,
D = NULL
)
An object of type binary_experimental_design
which can be further operated upon.
The design matrix with $n$ rows (one for each subject) and $p$ columns (one for each measurement on the subject). This is the design matrix you wish to search for a more optimal design.
Match using Mahalanobis distance. Default is FALSE
.
The function that computes the distance matrix between every two observations in X
,
its only argument. The default is NULL
signifying euclidean squared distance optimized in C++.
A distance matrix precomputed. The default is NULL
indicating the distance matrix should be computed.
Adam Kapelner