sdistance: sdistance

View source: R/sdistance.R View source: R/archive/sdistance.R

sdistanceR Documentation

sdistance

Description

Shiny app which shows the contribution of each variable to the distance between two observations with interactive variable selection. If dijk is the distance between observations i and j in variable k then the contribution is computed:

Usage

sdistance(data, xvar = character(0), ...)

Arguments

data

matrix or data.frame

xvar

character: names of selected variables for the plot

...

unused

Details

  • Total variance: var_k/sum(var_k) with var_k the variance of the kth variable

  • Minimum: dijk==min_k(dijk)

  • Manhattan: dijk/sum(dijk)

  • Gower: dijk is rescaled to [0, 1] in each variable and then dijk/sum(dijk)

  • Euclidean: dijk^2/sum(dijk^2)

  • Manhattan: dijk/sum(dijk)

  • Maximum: dijk==max_k(dijk)

Value

nothing

Examples

if (interactive()) sdistance(iris)

sigbertklinke/smvgraph documentation built on Dec. 10, 2022, 9:13 a.m.