The function aims to take list of two data sets and returns the after
matched data sets using user specified covariates and threshold
Usage
CovMatch(data, xCol, xCol.circ, thrs, priority)
Value
a list containing :
originalData - The data sets provided for matching
matchedData - The data sets after matching
MinMaxOriginal - The minimum and maximum value in original data for each covariate used in matching
MinMaxMatched - The minimum and maximum value in matched data for each covariates used in matching
Arguments
data
a list, consisting of data sets to match, also each of the individual data set can be dataframe or a matrix
xCol
a vector stating the column position of covariates used
xCol.circ
a vector stating the column position of circular variables
thrs
a numerical or a vector of threshold values for each covariates, against which matching happens
It should be a single value or a vector of values representing threshold for each of the covariate
priority
a boolean, default value False, otherwise computes the sequence of matching
References
Ding, Y. (2019). Data Science for Wind Energy. Chapman & Hall, Boca Raton, FL.