ryule: Generate a (non-random) network from a Yule Distribution

View source: R/ryule.R

ryuleR Documentation

Generate a (non-random) network from a Yule Distribution

Description

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.

Usage

ryule(n=20,rho=2.5, maxdeg=n-1, maxit=10, verbose=FALSE)

Arguments

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 n-1 then n-1 is used.

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.

Value

If the network package is available, the network is returned as a network object. If not a sociomatrix is returned.

Note

See the papers on https://handcock.github.io/?q=Holland for details

References

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.

See Also

ayulemle, dyule, reedmolloy

Examples

# Now, simulate a Yule network of 30
# actors with rho=4.0
ryule(n=30, rho=4)

degreenet documentation built on Sept. 26, 2024, 1:08 a.m.