InitErgmTerm.graphletCount in R -
i loaded interaction data, converted adjacency matrix , converted undirected graph.
i installed packages; ergm
, ergm.graphlets
, statnet
, etc.
when write:
initergmterm.graphletcount(gy2)
i following error message:
error: is.directed(nw) : is.directed requires argument of class network.
i couldn't find solution in tutorial, , appreciate if clarifies this.
if you're trying graphletcount way within 'ergm()' command, follows:
ergm(gy2~graphletcount(n))
n can number 0 29 corresponding 30 possible graphlets exist 5 nodes. it's possible define vector 'c(1,3,5)' run graphletcount. aware n optional argument , can left blank, run 30 possible counts.
Comments
Post a Comment