Skip to content
Tanya Berger-Wolf edited this page Aug 10, 2018 · 4 revisions

Welcome to the CommDy wiki!

Requirements

Install the followings before proceeding:

Input format

CommDy can now read rectangular CSV files. The input file should have three columns with headers "time", "group" and "individual" (in any order). For example,

time,group,individual
day1,g1,i1
day1,g1,i2
day1,g1,i3
day1,g2,i4
day1,g2,i5
day2,g1,i1
day2,g2,i5

If your data table lists members of each group on the same row, you can use gtm2csv.py to convert it to rectangular format. In the following, the input.csv is already rectangular.

How to run CommDy and compute stats.

$ cd CommDy/script
$ python commdy_metrics.py input.csv output_stats.csv
$ cat output_stats.csv
,individual,absenteeism,inquisitiveness,community_stay,avg_num_peers,peer_synchrony,group_size,group_homogeneity,individual_apparency,cyclicity,community_size
0,i1,0.0,0.5,2.0,1.0,0.0,2.0,0.5,2.0,0,3.0
1,i2,0.0,0.0,2.0,2.0,0.0,3.0,1.0,2.0,0,3.0
2,i3,0.0,0.0,2.0,2.0,0.0,3.0,1.0,2.0,0,3.0
3,i4,0.0,0.0,2.0,1.0,0.0,2.0,1.0,2.0,0,2.0
4,i5,0.0,0.5,2.0,0.5,0.0,1.5,0.5,2.0,0,2.0
Clone this wiki locally