Description Usage Arguments References Examples
This function runs the social induction model of network formation (see Ilany et al. 2016)
1 | socialInduction(obsNet = startingNet, Pn, Pr, Pb, iter)
|
obsNet |
Starting network. This must be a non-weighted and non-directed igraph network. |
Pn |
Probability of forming ties with a mother's partner. |
Pr |
Probability of forming ties with a non mother's partner. |
Pb |
Probability of forming ties with mother. |
iter |
Number of iteration, where each iteration removes one node and introduces a new one. |
Ilany A, Akcay E. Social inheritance can explain the structure of animal social networks. Nature Communications. 2016;7:12084. doi:10.1038/ncomms12084.
1 2 3 4 | startingNet = erdos.renyi.game(n=25, type = c("gnm"), p.or.m = 45)
predictedNet<-socialInduction(startingNet, Pn=0.4, Pr=0.1, Pb=1, iter=100)
plot(startingNet)
plot(predictedNet)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.