network_generate: Simulate synthetic population estimate ERGM contact networks.

View source: R/simulation_base_functions.R

network_generateR Documentation

Simulate synthetic population estimate ERGM contact networks.

Description

Simulate synthetic population estimate ERGM contact networks.

Usage

network_generate(para, output = "example", searched_clustering_number = 4)

Arguments

para

list contains all parameter, which should be from the function init_para; the paramter settings could be modified at this stage

output

character string for the function to save the output into. The function will create and save results into "Networks" directory.

searched_clustering_number

a parameter determin the strength of clustering within the population. Should use default setting unless for very specific testing session (e.g. simulating lockdown scenario where there is no contact except designated shopping time)

Value

a list of two object: first is an ERGM object which could be used to simulate contact networks; second is a para object which was updated with the synthetic population age and family information.

Examples

para <- init_para()
para$community.pop_sz <- 200
nw <- network_generate(para)
plot(simulate(nw[[1]]))

Xilin-Jiang/NetworkCOVID19 documentation built on April 2, 2022, 5:33 p.m.