Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

How to use replcation.mod having distance matrix?

$
0
0

I'm trying to use Replication.Mod function in this code:

library (clusterSim)
x<-read.csv2("C:\\Mieszane\\14d.csv",header=TRUE,row.names=1)
x<-as.matrix(x)
d<-as.dist(x)
a<-hclust(d, method="complete", members=NULL)
w<-replication.Mod(d,v="i",u=25,centrotypes="centroids",normalization=NULL,distance=a,method="complete",S=10,fixedAsample=NULL)
print(w$cRand)

I'm searching for Rand indicator. The main problem is, that I don't want to use regular data to then conpute distance matrix, but I've already got this distance matrix... What's wrong in my code then?


Viewing all articles
Browse latest Browse all 17268

Trending Articles