simdp {degreenet}R Documentation

Simulate from a Discrete Pareto Distribution

Description

Functions to generate random samples from a Discrete Pareto Probability Distribution

Usage

simdp(n=100, v=3.5, maxdeg=10000)

Arguments

n

number of samples to draw.

v

Discrete Pareto parameters: PDF exponent.

maxdeg

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

Value

vector of random draws or samples.

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

adpmle, ddp

Examples

## Not run: 
# Now, simulate a Discrete Pareto distribution over 100
# observations with lognormal mean -1 and lognormal standard deviation 1.

set.seed(1)
s4 <- simdp(n=100, v=3.5)
table(s4)

## End(Not run)

[Package degreenet version 1.3-5 Index]