draw_within_block_connection {bigergm}R Documentation

Draw within-block connections

Description

Draw within-block connections

Usage

draw_within_block_connection(
  seed_network,
  formula_for_simulation,
  coef_within_block,
  ergm_control,
  output = "network",
  seed,
  n_sim,
  verbose,
  ...
)

Arguments

seed_network

a seed network from which a network will be simulated.

formula_for_simulation

formula for simulating a network

coef_within_block

a vector of within-block parameters. The order of the parameters should match that of the formula.

ergm_control

auxiliary function as user interface for fine-tuning ERGM simulation

output

Normally character, one of "network" (default), "stats", "edgelist", to determine the output format.

seed

seed value (integer) for the random number generator.

n_sim

Number of networks to be randomly drawn from the given distribution on the set of all networks.

verbose

If this is TRUE/1, the program will print out additionalinformation about the progress of simulation.

...

Additional arguments, to be passed to lower-level functions

Value

Simulated within-block connections, the output form depends on the parameter output.

Examples

data(toyNet)

model_formula <- toyNet ~ edges + nodematch("x") + nodematch("y") 
draw_within_block_connection(formula_for_simulation = model_formula, 
                             coef_within_block = c(-2,0.1,0.2),
                             ergm_control = control.simulate(),
                             seed_network =toyNet,
                             verbose = TRUE, 
                             output = "edgelist",
                             seed = 123, 
                             n_sim = 1)



[Package bigergm version 1.1.0 Index]