powered by
Nearest neighbor of variables
getnnsvar(diss, flag)
a dissimilarity matrix between variables
a vector of size p which indicates if we want to compute nearest neighbor of variable j (flag[j]=1) or not (flag[j]=0)
p