igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[igraph] assortivity mixed


From: Fatemeh a
Subject: [igraph] assortivity mixed
Date: Tue, 20 Jan 2015 02:40:34 +0330

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]