Re: [R] How to find STRESS criteria in MDS when there are negative eigenvalues....

2010-09-17 Thread Ravi Varadhan
ind STRESS criteria in MDS when there are negative eigenvalues Hi, I want to know whether there is any function in R to find STRESS after using cmdscale and estimating the coordinates, I have written these functions to find stress (for p =1,2,3,4,5) stress<-rep(0,5) for(p in 1:5) { datahat&

[R] How to find STRESS criteria in MDS when there are negative eigenvalues....

2010-09-17 Thread Na.Ebrahimi
Hi, I want to know whether there is any function in R to find STRESS after using cmdscale and estimating the coordinates, I have written these functions to find stress (for p =1,2,3,4,5) stress<-rep(0,5) for(p in 1:5) { datahat<-cmdscale(d,p) deltahat<-as.matrix(dist(datahat)) a<-0 b<-0 for(i i