ryule | R Documentation |
Generate a network with a given number of actors having a degree distribution draw from a Yule distribution. The resultant network is not random - that is, is not a random draw from all such networks.
ryule(n=20,rho=2.5, maxdeg=n-1, maxit=10, verbose=FALSE)
n |
Number of actors in the network. |
rho |
PDF exponent of the Yule distribution. |
maxdeg |
Maximum degree to sample (using truncation of the distribution). If this is greater then |
maxit |
integer; maximum number of resamplings of the degree sequence to find a valid network. |
verbose |
Print out details of the progress of the algorithm. |
If the network
package is available, the network is returned as
a network
object. If not a sociomatrix is returned.
See the papers on https://handcock.github.io/?q=Holland for details
Jones, J. H. and Handcock, M. S. "An assessment of preferential attachment as a mechanism for human sexual network formation," Proceedings of the Royal Society, B, 2003, 270, 1123-1128.
ayulemle, dyule, reedmolloy
# Now, simulate a Yule network of 30
# actors with rho=4.0
ryule(n=30, rho=4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.