socialInduction: Social induction model

Description Usage Arguments References Examples

View source: R/SocialInductionModels.R

Description

This function runs the social induction model of network formation (see Ilany et al. 2016)

Usage

1
socialInduction(obsNet = startingNet, Pn, Pr, Pb, iter)

Arguments

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.

References

Ilany A, Akcay E. Social inheritance can explain the structure of animal social networks. Nature Communications. 2016;7:12084. doi:10.1038/ncomms12084.

Examples

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)

tbonne/SocialIntegrationNet documentation built on July 31, 2018, 4:11 a.m.