Skip to content
Prev 30565 / 398506 Next

isoMDS and stress

Hi all,

I try to calculate the stress of a configuration using the formula in
the isoMDS help, but I don't have the same result than the stress
returned by isoMDS :
initial  value 2.979731 
iter   5 value 2.431486
iter  10 value 2.343353
final  value 2.338839 
Converged
+ 	l <- length(avant)
+ 	num <- 0
+ 	denum <- 0
+ 
+ 	for (i in 1:l) {
+ 		num <- num + (avant[i] - apres[i])^2
+ 		denum <- denum + apres[i]
+ 	}
+ 
+ 	sqrt(num / denum)
+ }
[1] 2.338839
[1] 0.4196349
Any idea ?
Thanks

--
Stephane