View source: R/simulation_base_functions.R
network_generate | R Documentation |
Simulate synthetic population estimate ERGM contact networks.
network_generate(para, output = "example", searched_clustering_number = 4)
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) |
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.
para <- init_para() para$community.pop_sz <- 200 nw <- network_generate(para) plot(simulate(nw[[1]]))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.