Learn R Programming

degreenet (version 1.3-6)

simyule: Simulate from a Yule Distribution

Description

Functions to generate random samples from a Yule Probability Distribution

Usage

simyule(n=100, rho=4, maxdeg=10000)

Value

vector of random draws or samples.

Arguments

n

number of samples to draw.

rho

Yule PDF exponent.

maxdeg

Maximum degree to sample (using truncation of the distribution).

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

Examples

Run this code
# Now, simulate a Yule distribution over 100
# observations with rho=4.0

set.seed(1)
s4 <- simyule(n=100, rho=4)
table(s4)

Run the code above in your browser using DataLab