You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
---
Zack W. Almquist
Assistant Professor, Department of Sociology
Adjunct Assistant Professor, Department of Statistics
Senior Data Scientist Fellow, eScience Institute
Training Core PI, Center for Studies in Demography and Ecology
University of Washington
Editor-in-Chief, Journal of Mathematical Sociology
Website: http://depts.washington.edu/zalmquist
---
Zack W. Almquist
Assistant Professor, Department of Sociology
Adjunct Assistant Professor, Department of Statistics
Senior Data Scientist Fellow, eScience Institute
Training Core PI, Center for Studies in Demography and Ecology
University of Washington
Editor-in-Chief, Journal of Mathematical Sociology
Website: http://depts.washington.edu/zalmquist
Hi,
I have noticed that the vertex.names match the "order of the vertices":
library(networkDynamic)
data("windsurfers")
a<-c(); for (i in 1:95){if(i!=windsurfers$val[[i]]$vertex.names) {a<-c(a,windsurfers$val[[i]]$vertex.names)}}; a
# NULL
Also that the nodes 16:18 are flagged as in group1, but 19 and many others are missing:
Could it be possible that indices and vertex.names have gotten mixed up somewhere?
I hope this helps to clarify the problem.
Best,
Giacomo
Some code to reproduce the issue:
library(networkDynamic)
data("windsurfers")
a<-c();for (i in 1:95){a<-c(a,windsurfers$val[[i]]$group1)}; sum(a)
# [1] 18 The output should be 22
group1<-c(1:8,13, 16:19, 22, 28, 37, 39, 40, 46, 47, 51, 54)
a<-c();for (i in 1:95){if(windsurfers$val[[i]]$group1==1) {a<-c(a,windsurfers$val[[i]]$vertex.names)}}; length(intersect(a, group1))
# [1] 7 The output should be 22
group2 <-c(9, 10, 14, 15, 20, 21, 23:27, 29, 32, 33, 41:45, 49, 52)
a<-c();for (i in 1:95){if(windsurfers$val[[i]]$group2==1) {a<-c(a,windsurfers$val[[i]]$vertex.names)}};length(intersect(a, group2))
# [1] 9 The output should be 21
Activity
zalmquist commentedon Feb 14, 2022
It looks like it is in both formats of the data. Not sure what happened.
mbojan commentedon Feb 18, 2022
Does this apply to the windsurfers data?
zalmquist commentedon Feb 18, 2022
skyebend commentedon Feb 18, 2022
Hi Zach, I'm sorry I'm not up to speed on context here, looks like 16:19 is on the list for group 1?
zalmquist commentedon Feb 18, 2022
giava90 commentedon Mar 15, 2022
Hi,
I have noticed that the
vertex.namesmatch the "order of the vertices":Also that the nodes 16:18 are flagged as in group1, but 19 and many others are missing:
Could it be possible that indices and
vertex.nameshave gotten mixed up somewhere?I hope this helps to clarify the problem.
Best,
Giacomo
Some code to reproduce the issue: