We are hiring ! See our job offers.
https://github.com/cran/CluMix
Raw File
Tip revision: 0d1b46ce56f99be7b8c9412c34b720b0794a8ce6 authored by Manuela Hummel on 03 March 2016, 20:29:17 UTC
version 0.3
Tip revision: 0d1b46c
dist.variables.R
dist.variables <-
function(data, associationFun=association, check.psd=TRUE){
# data: data.frame of original data 
# associationFun: function that calculates association measure for each pair of variables
# check.psd: check if resulting similarity matrix S is positive semi-definite?

  S <- similarity.variables(data, associationFun=associationFun, check.psd=check.psd)
  D <- as.dist(sqrt(1 - S))
  return(D)
}
back to top