simwar: Simulate from a Waring Distribution

Description Usage Arguments Value Note References See Also Examples

Description

Functions to generate random samples from a Waring Probability Distribution

Usage

1
simwar(n=100, v=c(3.5, 0.1), maxdeg=10000)

Arguments

n

number of samples to draw.

v

Waring parameters: scaling exponent and probability of a new actor.

maxdeg

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

Value

vector of random draws or samples.

Note

See the working papers on http://www.csss.washington.edu/Papers 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

awarmle, dwar

Examples

1
2
3
4
5
6
7
# Now, simulate a Waring distribution over 100
# observations with Waring with exponent 3.5 and probability of a new
# actor 0.1.

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

Example output

degreenet: Models for Skewed Count Distributions Relevant to Networks
Version 1.3-1 created on 2015-04-03.
copyright (c) 2013, Mark S. Handcock, University of California - Los Angeles
 Based on "statnet" project software (statnet.org).
 For license and citation information see statnet.org/attribution
 For citation information, type citation("degreenet").
 Type help("degreenet-package") to get started.

s4
 1  2  3  4  5 11 
68 19  9  2  1  1 

degreenet documentation built on May 1, 2019, 8:08 p.m.