Hi all,
I would appreciate any help regards this :
I am trying to calculate homophily for the graph, my concern is regards to
the missing attribute for the vertex which we calculate homophily based on
that :
karate <- graph.famous("Zachary")
karate <- add.vertices(karate, 6) #to have zero degree vertecies
V(karate)$gender<-as.character(c(1,-1,0,1,1,0,1,1,0,-1,0,-1,0,1,0,-1,0,1,0,1,1,0,-1,0,1,0,-1,1,1,0,-1,0,1,0,1,-1,1,0,1,0))
assortativity(karate,types1=V(karate)$gender,types2=NULL,directed=FALSE)
if we include the Na's value we would get back NA so missing values are
replace with -1 here,but I guess it consider it as a new type, How to avoid
that ?
and one other question, in what condition do we get NaN ?
Thank you in advance
regards,
Fatemeh
_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help