A baseline distribution of motif counts from a specified number of networks using a specified baseline model is computed. Options for the baseline model are - Erdős–Rényi - Actor's choice - Fixed density - Providing an ERGM fit for the whole network - Providing a partial ERGM fit (for only one level)
simulate_baseline( net, motifs, n = 10, lvl_attr = "sesType", assume_sparse = TRUE, model = "erdos_renyi", level = -1, ergm_model = NULL, directed = NULL )
net | network object |
---|---|
motifs | list of motif identifier strings |
n | number of random graphs |
lvl_attr | character string specifying the attribute name where level
information is stored in |
assume_sparse | whether the random graphs shall be assumed to be sparse. used to find ideal counting function. defaults to TRUE. |
model | baseline model to be used. Options are 'erdos_renyi',
'fixed_densities', 'actors_choice', 'ergm' and 'partial_ergm'. See
|
level | lvl_attr of the variable level for the Actor's Choice model and for partial ERGM |
ergm_model | ergm model as for example fitted by calling
|
directed | whether the graph shall be treated as a directed graph. Per
default ( |
data frame with one column for each motif identifier string and one row for every computed random graph
Note that when using the Actor's Choice model this function does not choose
the variable level automatically. Use the level
parameter to provide a
valid level.
When using (partial) ERGM the parameter net
is not used. Random
networks are sampled in R using the ergm_model
parameter.
#> 1,2[I.C] #> 1 125 #> 2 208 #> 3 139 #> 4 141 #> 5 183 #> 6 130 #> 7 151 #> 8 222 #> 9 141 #> 10 156# }