rdiffnet(
200, 10,
seed.p.adopt = list(0.1, 0.15),
seed.nodes = list("random", "random"),
behavior = list("Behavior 1", "Behavior 2")
)
Returns
Message: Multi-diffusion behavior simulation selected. Number of behaviors: 2
Dynamic network of class -diffnet-
Name : A diffusion network
Behavior : Behavior 1, Behavior 2
# of nodes : 200 (1, 2, 3, 4, 5, 6, 7, 8, ...)
# of time periods : 10 (1 - 10)
Type : directed
Num of behaviors : 2
Prevalence : 0.61, 0.93
Static attributes : real_threshold.1, real_threshold.2 (2)
Dynamic attributes : -
Warning message:
In new_diffnet(graph = sgraph, toa = toa, self = isself, t0 = 1, :
Coercing -toa- into integer.
This does not happen with a single diffusion behavior.
> sessionInfo()
R version 4.5.1 (2025-06-13)
Platform: aarch64-apple-darwin20
Running under: macOS Sequoia 15.0.1
Matrix products: default
BLAS: /Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/lib/libRblas.0.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/lib/libRlapack.dylib; LAPACK version 3.12.1
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
time zone: America/Denver
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] netdiffuseR_1.25.0
loaded via a namespace (and not attached):
[1] vctrs_0.7.3 cli_3.6.6 rlang_1.3.0
[4] generics_0.1.4 glue_1.8.1 networkLite_1.1.0
[7] backports_1.5.1 network_1.20.0 grid_4.5.1
[10] SparseM_1.84-2 tibble_3.3.1 MASS_7.3-65
[13] lifecycle_1.0.5 compiler_4.5.1 networkDynamic_0.12.0
[16] dplyr_1.2.1 igraph_2.3.3 coda_0.19-4.1
[19] Rcpp_1.1.2 pkgconfig_2.0.3 statnet.common_4.13.0
[22] lattice_0.22-7 viridisLite_0.4.3 R6_2.6.1
[25] tidyselect_1.2.1 pillar_1.11.1 magrittr_2.0.5
[28] sna_2.8 Matrix_1.7-3 tools_4.5.1
[31] boot_1.3-31 MatchIt_4.7.2
Returns
This does not happen with a single diffusion behavior.