sim.network: Simulation of the network

Description Usage Arguments See Also Examples

View source: R/ARDdata.R

Description

Generate networks from the distribution of the network.

Usage

1
sim.network(dnetwork)

Arguments

dnetwork

is the matrix of link probabilities.

See Also

sim.dnetwork

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
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)

# Generale degrees
d       <- runif(N, 0, 45)

# Network distribution
dist    <- sim.dnetwork(nu, d, zeta, z)

# Generate network
G       <- sim.network(dist)

ahoundetoungan/PartialNetwork documentation built on Oct. 6, 2020, 1:51 a.m.