acugow {dprep} | R Documentation |
This function finds out the gower distance between a vector and a matrix
acugow(x, data, vnom = NULL)
x |
A Vector of attributes values |
data |
A matrix dataset |
vnom |
A vector indicating the columns with nominal attributes in the matrix dataset |
matdist |
a matrix containing the components of the distance vector from x to each row of data |
dist |
a vector containing the distances from x to each row of data |
Edgar Acuna
data(crx) crx.imp=ce.impute(crx,"knn",nomatr=c(1,4,5,6,7,9,10,12,13),3) acugow(crx.imp[1,-16],crx.imp[-1,-16],vnom=c(1,4,5,6,7,9,10,12,13))