ryule {degreenet} | 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,cutoff=1,cutabove=1000, greedy=FALSE, maxdeg=10000,maxout=TRUE,verbose=FALSE)
n |
Number of actors in the network. |
rho |
PDF exponent of the Yule distribution. |
cutoff |
Calculate estimates conditional on exceeding this value. |
cutabove |
Calculate estimates conditional on not exceeding this value. |
greedy |
Use a greedy algorithm that may perform better for larger networks, and may perform worse. |
maxdeg |
The maximum degree to simulate. The probabilities of the degrees are chosen by truncation. |
maxout |
Ensure the maximum degree of any actor is feasible - that is, at most the number of available actors. |
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 working papers on http://www.csss.washington.edu/Papers 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)