Displaying 1 result from an estimated 1 matches for "irissas".
Did you mean:
aristas
2005 Jul 06
1
Help: Mahalanobis distances between 'Species' from iris
....htm
From this distance my intention is to make a cluster analysis as below, using
the package 'mclust':
#
# --- Begin R script ---
#
# For units compatibility of 'iris' from R dataset and 'iris' data used in
# the SAS example:
Measures = iris[,1:4]*10
Species = iris[,5]
irisSAS = data.frame(Measures, Species)
n = 3
Mah = c( 0,
89.86419, 0,
179.38471, 17.20107, 0)
# My Question is: how to obtain 'Mah' with R from 'irisSAS' data?
D = matrix(0, n, n)
nam = c('Set', 'Ver', 'Vir')
rownames(D) = nam...