sim.dnetwork | R Documentation |
Compute the distribution of the network following McCormick and Zheng (2015) and Breza et al. (2020).
sim.dnetwork(nu, d, zeta, z)
nu |
is the vector of gregariousness. |
d |
is the vector of degrees. |
zeta |
is a scale parameter that captures the influence of the latent positions on the link probabilities. |
z |
is a matrix where each row is a spherical coordinate. |
a matrix of linking probabilities.
sim.network
N <- 500
zeta <- 1
# Generate the spherical coordinates
z <- rvMF(N, c(0, 0, 0))
# Genetate the gregariousness
nu <- rnorm(N, -1.35, 0.37)
# Generate degrees
d <- runif(N, 0, 45)
dist <- sim.dnetwork(nu, d, zeta, z)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.