Hi again,
In the manual, you have an example of how to calculate the rich club attrs from a graph:
g[[1]][[N]] <- rich_club_attrs(g[[1]][[N]], c(rich_core(g[[1]][[N]])$k.r, 12))
where you specify a range of degrees where phi_norm > 1 is significant. In your example above, the bottom of the range is k.r from the output of the rich_core function, but the top of the range is what seems like an arbitrary 12. In my case the rich club size is actually greater than 12, so I am wondering if an appropriate upper bound could be calculated programmatically, something like:
max(rich.dt[threshold==0.2 & Subject.ID=='mySubjectID' & p.fdr < 0.05,]$k)
Do you think that's an appropriate way to calculate this, or should I be doing something more sophisticated?
Thanks,
-syam