diff --git a/404.html b/404.html index cb9ad25f..32780a31 100644 --- a/404.html +++ b/404.html @@ -39,7 +39,7 @@ migraph - 1.1.5 + 1.1.7 diff --git a/CODE_OF_CONDUCT.html b/CODE_OF_CONDUCT.html index 5ba06ed3..11a1af85 100644 --- a/CODE_OF_CONDUCT.html +++ b/CODE_OF_CONDUCT.html @@ -17,7 +17,7 @@ migraph - 1.1.5 + 1.1.7 diff --git a/CONTRIBUTING.html b/CONTRIBUTING.html index 4f3bbfa2..7204858d 100644 --- a/CONTRIBUTING.html +++ b/CONTRIBUTING.html @@ -17,7 +17,7 @@ migraph - 1.1.5 + 1.1.7 diff --git a/LICENSE-text.html b/LICENSE-text.html index 0df9b092..f06044be 100644 --- a/LICENSE-text.html +++ b/LICENSE-text.html @@ -17,7 +17,7 @@ migraph - 1.1.5 + 1.1.7 diff --git a/LICENSE.html b/LICENSE.html index 1a3c4f03..d132c845 100644 --- a/LICENSE.html +++ b/LICENSE.html @@ -17,7 +17,7 @@ migraph - 1.1.5 + 1.1.7 diff --git a/authors.html b/authors.html index 2f21d90a..2dca4194 100644 --- a/authors.html +++ b/authors.html @@ -17,7 +17,7 @@ migraph - 1.1.5 + 1.1.7 diff --git a/index.html b/index.html index ca53431f..0c39c6a0 100644 --- a/index.html +++ b/index.html @@ -49,7 +49,7 @@ migraph - 1.1.5 + 1.1.7 diff --git a/news/index.html b/news/index.html index ff160a9b..bf0f3af3 100644 --- a/news/index.html +++ b/news/index.html @@ -17,7 +17,7 @@ migraph - 1.1.5 + 1.1.7 @@ -54,7 +54,43 @@

Changelog

- + +

2023-11-15

+
+

Package

+
+
+

Measures

+
+
+

Marks

+
+
+

Models

+
+
+

Tutorials

+
+
+
+ +

2023-11-08

+
+

Measures

+
+
+

Models

+
+
+

Tutorials

+
+
+
+

2023-11-02

Members

@@ -515,7 +551,7 @@

Package

Manipulation

  • Added as_graphAM() methods for all migraph-consistent object classes so {Rgraphviz} can be used effectively
  • -
  • Added as_igraph(), as_tidygraph(), and as_network() methods for RSiena sienaData objects (thanks @JaelTan, closed #94)
  • +
  • Added as_igraph(), as_tidygraph(), and as_network() methods for RSiena sienaData objects (thanks @JaelTan, closed #94)
  • Added as_edgelist() and as_matrix() methods for network.goldfish class objects
  • The "twomode" argument in as_matrix() is now NULL by default, allowing both one-mode and two-mode coercion
  • diff --git a/pkgdown.yml b/pkgdown.yml index ba44a314..17b549de 100644 --- a/pkgdown.yml +++ b/pkgdown.yml @@ -2,7 +2,7 @@ pandoc: 2.7.3 pkgdown: 2.0.7 pkgdown_sha: ~ articles: {} -last_built: 2023-11-02T09:14Z +last_built: 2023-11-15T13:57Z urls: reference: https://snlab-ch.github.io/migraph/reference article: https://snlab-ch.github.io/migraph/articles diff --git a/pull_request_template.html b/pull_request_template.html index 2d3593e7..de23a6fa 100644 --- a/pull_request_template.html +++ b/pull_request_template.html @@ -17,7 +17,7 @@ migraph - 1.1.5 + 1.1.7

diff --git a/reference/Rplot001.png b/reference/Rplot001.png index 6d9e5ad2..c85ec3dd 100644 Binary files a/reference/Rplot001.png and b/reference/Rplot001.png differ diff --git a/reference/Rplot002.png b/reference/Rplot002.png index f857d478..48a64d98 100644 Binary files a/reference/Rplot002.png and b/reference/Rplot002.png differ diff --git a/reference/Rplot003.png b/reference/Rplot003.png index 6c61519b..56d7dfde 100644 Binary files a/reference/Rplot003.png and b/reference/Rplot003.png differ diff --git a/reference/between_centrality.html b/reference/between_centrality.html index 4c28a8a8..700fb768 100644 --- a/reference/between_centrality.html +++ b/reference/between_centrality.html @@ -17,7 +17,7 @@ migraph - 1.1.5 + 1.1.7
@@ -123,6 +123,7 @@

See also

closure, cohesion(), degree_centrality, +diffusion, eigenv_centrality, features, heterogeneity, diff --git a/reference/brokerage_census.html b/reference/brokerage_census.html index f95c53fb..22c4785f 100644 --- a/reference/brokerage_census.html +++ b/reference/brokerage_census.html @@ -17,7 +17,7 @@ migraph - 1.1.5 + 1.1.7 @@ -112,16 +112,16 @@

Examples

#> # A tibble: 32 × 7 #> names Coordinator Itinerant Gatekeeper Representative Liaison Total #> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> -#> 1 LIN FREEMAN 137 28 123 138 72 498 -#> 2 DOUG WHITE 5 113 45 46 116 325 -#> 3 EV ROGERS 0 0 0 0 3 3 -#> 4 RICHARD ALBA 14 4 14 25 15 72 -#> 5 PHIPPS ARABIE 0 5 0 7 24 36 -#> 6 CAROL BARNER-B… 0 17 4 3 16 40 -#> 7 GARY COOMBS 0 0 0 0 0 0 -#> 8 RUSS BERNARD 2 49 36 19 78 184 -#> 9 JOHN BOYD 2 0 0 1 0 3 -#> 10 RON BURT 32 2 19 38 10 101 +#> 1 Lin Freeman 137 28 123 138 72 498 +#> 2 Doug White 5 113 45 46 116 325 +#> 3 Ev Rogers 0 0 0 0 3 3 +#> 4 Richard Alba 14 4 14 25 15 72 +#> 5 Phipps Arabie 0 5 0 7 24 36 +#> 6 Carol Barner-B… 0 17 4 3 16 40 +#> 7 Gary Coombs 0 0 0 0 0 0 +#> 8 Russ Bernard 2 49 36 19 78 184 +#> 9 John Boyd 2 0 0 1 0 3 +#> 10 Ron Burt 32 2 19 38 10 101 #> # ℹ 22 more rows network_brokerage_census(manynet::ison_networkers, "Discipline") #> # A tibble: 1 × 6 diff --git a/reference/close_centrality.html b/reference/close_centrality.html index 21859a59..7ce09b12 100644 --- a/reference/close_centrality.html +++ b/reference/close_centrality.html @@ -17,7 +17,7 @@ migraph - 1.1.5 + 1.1.7 @@ -140,6 +140,7 @@

See also

closure, cohesion(), degree_centrality, +diffusion, eigenv_centrality, features, heterogeneity, diff --git a/reference/closure.html b/reference/closure.html index 6a1d91a7..937ae168 100644 --- a/reference/closure.html +++ b/reference/closure.html @@ -18,7 +18,7 @@ migraph - 1.1.5 + 1.1.7 @@ -134,6 +134,7 @@

See also

close_centrality, cohesion(), degree_centrality, +diffusion, eigenv_centrality, features, heterogeneity, @@ -146,7 +147,7 @@

Examples

network_reciprocity(ison_southern_women)
 #> [1] 1
 node_reciprocity(to_unweighted(ison_networkers))
-#>   `LIN FREEMAN` `DOUG WHITE` `EV ROGERS` `RICHARD ALBA` `PHIPPS ARABIE`
+#>   `Lin Freeman` `Doug White` `Ev Rogers` `Richard Alba` `Phipps Arabie`
 #> 1         0.935         0.75           1          0.944           0.286
 #> # ... with 27 more values from this nodeset unprinted. Use `print(..., n = Inf)` to print all values.
 network_transitivity(ison_adolescents)
diff --git a/reference/cluster.html b/reference/cluster.html
index 7f554a8e..954eb156 100644
--- a/reference/cluster.html
+++ b/reference/cluster.html
@@ -22,7 +22,7 @@
       
       
         migraph
-        1.1.5
+        1.1.7
       
     
diff --git a/reference/cohesion.html b/reference/cohesion.html index 5d6c9ab7..7379ec39 100644 --- a/reference/cohesion.html +++ b/reference/cohesion.html @@ -18,7 +18,7 @@ migraph - 1.1.5 + 1.1.7 @@ -113,6 +113,7 @@

See also

close_centrality, closure, degree_centrality, +diffusion, eigenv_centrality, features, heterogeneity, diff --git a/reference/community.html b/reference/community.html index 6dcd8e2b..0a8ff85e 100644 --- a/reference/community.html +++ b/reference/community.html @@ -21,7 +21,7 @@ migraph - 1.1.5 + 1.1.7 @@ -320,7 +320,7 @@

Examples

#> 1 1 1 1 1 1 1 1 1 node_spinglass(ison_adolescents) #> Betty Sue Alice Jane Dale Pam Carol Tina -#> 1 1 1 3 3 3 2 2 2 +#> 1 2 2 1 1 1 3 3 3 node_louvain(ison_adolescents) #> Betty Sue Alice Jane Dale Pam Carol Tina #> 1 1 1 2 2 2 3 3 3 diff --git a/reference/components.html b/reference/components.html index 062282f1..381c61a9 100644 --- a/reference/components.html +++ b/reference/components.html @@ -32,7 +32,7 @@ migraph - 1.1.5 + 1.1.7 diff --git a/reference/core.html b/reference/core.html index b1e58c25..136776b8 100644 --- a/reference/core.html +++ b/reference/core.html @@ -26,7 +26,7 @@ migraph - 1.1.5 + 1.1.7 diff --git a/reference/defunct.html b/reference/defunct.html index 7e2d1de5..be49d08d 100644 --- a/reference/defunct.html +++ b/reference/defunct.html @@ -23,7 +23,7 @@ migraph - 1.1.5 + 1.1.7 diff --git a/reference/degree_centrality.html b/reference/degree_centrality.html index b5e2e76b..0eb13f17 100644 --- a/reference/degree_centrality.html +++ b/reference/degree_centrality.html @@ -23,7 +23,7 @@ migraph - 1.1.5 + 1.1.7 @@ -190,6 +190,7 @@

See also

close_centrality, closure, cohesion(), +diffusion, eigenv_centrality, features, heterogeneity, diff --git a/reference/diffusion.html b/reference/diffusion.html new file mode 100644 index 00000000..47d0142d --- /dev/null +++ b/reference/diffusion.html @@ -0,0 +1,146 @@ + +Functions to play games on networks — diffusion • migraph + + +
+
+ + + +
+
+ + +
+

Functions to play games on networks

+
+ +
+
network_transmissibility(diff_model)
+
+node_infection_length(diff_model)
+
+network_infection_length(diff_model)
+
+network_reproduction(diff_model)
+
+node_adoption_time(diff_model)
+
+node_adopter(diff_model)
+
+node_thresholds(diff_model)
+
+ +
+

Arguments

+
diff_model
+

A valid network diffusion model.

+ +
+
+

Functions

+ +
  • network_transmissibility(): Calculates the average transmissibility observed +in a diffusion simulation, or the number of new infections over +the number of susceptible, over the number of infected

  • +
  • node_infection_length(): Calculates the average length nodes remain +infected in a compartmental model with recovery

  • +
  • network_infection_length(): Calculates the average length nodes remain +infected in a compartmental model with recovery for the network as a whole

  • +
  • network_reproduction(): Calculates the observed reproductive number +in a diffusion simulation as the network's transmissibility over +the network's average infection length

  • +
  • node_adoption_time(): Returns nodes' time of adoption/infection

  • +
  • node_adopter(): Returns nodes' time of adoption/infection

  • +
  • node_thresholds(): Infers nodes' thresholds from the amount +of exposure they had when they became infected

  • +
+
+

References

+

Kermack, W. and McKendrick, A., 1927. "A contribution to the mathematical theory of epidemics". +Proc. R. Soc. London A 115: 700-721.

+

Valente, Tom W. (1995). Network models of the diffusion of innovations +(2nd ed.). Cresskill N.J.: Hampton Press.

+
+ + +
+ +
+ + +
+ + + + + + + + diff --git a/reference/eigenv_centrality.html b/reference/eigenv_centrality.html index 8936b00e..7dbc82e1 100644 --- a/reference/eigenv_centrality.html +++ b/reference/eigenv_centrality.html @@ -17,7 +17,7 @@ migraph - 1.1.5 + 1.1.7 @@ -198,6 +198,7 @@

See also

closure, cohesion(), degree_centrality, +diffusion, features, heterogeneity, hierarchy, diff --git a/reference/equivalence.html b/reference/equivalence.html index 773855da..829cce31 100644 --- a/reference/equivalence.html +++ b/reference/equivalence.html @@ -22,7 +22,7 @@ migraph - 1.1.5 + 1.1.7 diff --git a/reference/features.html b/reference/features.html index 127c4ebe..7653a25a 100644 --- a/reference/features.html +++ b/reference/features.html @@ -17,7 +17,7 @@ migraph - 1.1.5 + 1.1.7 @@ -135,7 +135,7 @@

Functions

  • network_factions(): Returns correlation between a given network and a component model with the same dimensions. If no 'membership' vector is given for the data, -node_kernaghinlin() is used to obtain a partition into two groups.

  • +node_kernighanlin() is used to obtain a partition into two groups.

  • network_modularity(): Returns modularity based on nodes' membership in pre-defined clusters.

  • network_smallworld(): Returns small-world metrics for one- and @@ -207,6 +207,7 @@

    See also

    closure, cohesion(), degree_centrality, +diffusion, eigenv_centrality, heterogeneity, hierarchy, @@ -234,11 +235,11 @@

    Examples

    network_smallworld(ison_brandes) #> [1] NaN network_smallworld(ison_southern_women) -#> [1] -1.03 +#> [1] -1.04 network_scalefree(ison_adolescents) #> [1] 3.69 network_scalefree(generate_scalefree(50, 1.5)) -#> [1] 2.46 +#> [1] 2.41 network_scalefree(create_lattice(100)) #> Note: Kolgomorov-Smirnov test that data could have been drawn from a power-law distribution rejected. #> [1] 3.46 diff --git a/reference/heterogeneity.html b/reference/heterogeneity.html index a328620c..10be3b57 100644 --- a/reference/heterogeneity.html +++ b/reference/heterogeneity.html @@ -19,7 +19,7 @@ migraph - 1.1.5 + 1.1.7 @@ -113,7 +113,7 @@

    Functions

    are within groups of nodes with the same attribute

  • node_heterophily(): Calculates each node's embeddedness within groups of nodes with the same attribute

  • -
  • network_assortativity(): Calculates the degree assortativity in a graph.

  • +
  • network_assortativity(): Calculates the degree assortativity in a network.

  • network_diversity

    @@ -162,6 +162,7 @@

    See also

    closure, cohesion(), degree_centrality, +diffusion, eigenv_centrality, features, hierarchy, diff --git a/reference/hierarchy.html b/reference/hierarchy.html index 14aed594..d6313c9d 100644 --- a/reference/hierarchy.html +++ b/reference/hierarchy.html @@ -17,7 +17,7 @@ migraph - 1.1.5 + 1.1.7
    @@ -104,6 +104,7 @@

    See also

    closure, cohesion(), degree_centrality, +diffusion, eigenv_centrality, features, heterogeneity, diff --git a/reference/holes.html b/reference/holes.html index 69d87231..3d5932a9 100644 --- a/reference/holes.html +++ b/reference/holes.html @@ -22,7 +22,7 @@ migraph - 1.1.5 + 1.1.7 @@ -157,6 +157,7 @@

    See also

    closure, cohesion(), degree_centrality, +diffusion, eigenv_centrality, features, heterogeneity, diff --git a/reference/index.html b/reference/index.html index d5e9e1c4..afcc104b 100644 --- a/reference/index.html +++ b/reference/index.html @@ -17,7 +17,7 @@ migraph - 1.1.5 + 1.1.7 @@ -61,7 +61,7 @@

    Marks

    Marking networks based on their properties

    -

    node_is_cutpoint() node_is_isolate() node_is_core() node_is_random() node_is_max() node_is_min()

    +

    node_is_cutpoint() node_is_isolate() node_is_core() node_is_random() node_is_mentor() node_is_max() node_is_min()

    Marking nodes based on their properties

    @@ -116,6 +116,10 @@

    Measures network_connectedness() network_efficiency() network_upperbound()

    Graph theoretic dimensions of hierarchy

    + +

    network_transmissibility() node_infection_length() network_infection_length() network_reproduction() node_adoption_time() node_adopter() node_thresholds()

    + +

    Functions to play games on networks

    Motifs

    Functions for calculating subgraphs in multimodal networks. These functions have an additional dimension than node_ and network_ measures and marks that capture the different motifs surveyed.

    diff --git a/reference/is.html b/reference/is.html index ed1f0e00..1c0ab2be 100644 --- a/reference/is.html +++ b/reference/is.html @@ -18,7 +18,7 @@ migraph - 1.1.5 + 1.1.7 diff --git a/reference/kselect.html b/reference/kselect.html index 0c3e8903..06dccbf9 100644 --- a/reference/kselect.html +++ b/reference/kselect.html @@ -19,7 +19,7 @@ migraph - 1.1.5 + 1.1.7 diff --git a/reference/mark_nodes.html b/reference/mark_nodes.html index 01632bee..9fac5dc8 100644 --- a/reference/mark_nodes.html +++ b/reference/mark_nodes.html @@ -25,7 +25,7 @@ migraph - 1.1.5 + 1.1.7 @@ -83,6 +83,8 @@

    Marking nodes based on their properties

    node_is_random(.data, size = 1) +node_is_mentor(.data, elites = 0.1) + node_is_max(node_measure, ranks = 1) node_is_min(node_measure, ranks = 1)
    @@ -103,6 +105,21 @@

    Arguments

    The number of nodes to select (as TRUE).

    +
    elites
    +

    The proportion of nodes to be selected as mentors. +By default this is set at 0.1. +This means that the top 10% of nodes in terms of degree, +or those equal to the highest rank degree in the network, +whichever is the higher, will be used to select the mentors.

    +

    Note that if nodes are equidistant from two mentors, +they will choose one at random. +If a node is without a path to a mentor, +for example because they are an isolate, +a tie to themselves (a loop) will be created instead. +Note that this is a different default behaviour than that +described in Valente and Davis (1999).

    + +
    node_measure

    An object created by a node_ measure.

    @@ -127,11 +144,19 @@

    Functions

    of the core of the network.

  • node_is_random(): Returns a logical vector indicating a random selection of nodes as TRUE.

  • +
  • node_is_mentor(): Returns a logical vector +indicating mentor (high indegree) nodes as TRUE.

  • node_is_max(): Returns logical of which nodes hold the maximum of some measure

  • node_is_min(): Returns logical of which nodes hold the minimum of some measure

  • +
    +

    References

    +

    Valente, Thomas, and Rebecca Davis. 1999. +"Accelerating the Diffusion of Innovations Using Opinion Leaders", +Annals of the American Academy of Political and Social Science 566: 56-67.

    +

    See also

    Other marks: @@ -152,7 +177,7 @@

    Examples

    #> 1 FALSE FALSE TRUE TRUE FALSE FALSE FALSE FALSE TRUE FALSE FALSE node_is_random(ison_brandes, 2) #> V1 V2 V3 V4 V5 V6 V7 V8 V9 V10 V11 -#> 1 FALSE FALSE FALSE TRUE TRUE FALSE FALSE FALSE FALSE FALSE FALSE +#> 1 FALSE FALSE FALSE FALSE FALSE FALSE TRUE FALSE FALSE TRUE FALSE node_is_max(node_degree(ison_brandes)) #> V1 V2 V3 V4 V5 V6 V7 V8 V9 V10 V11 #> 1 FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE TRUE FALSE FALSE diff --git a/reference/mark_ties.html b/reference/mark_ties.html index 0b2197ec..e2a56c16 100644 --- a/reference/mark_ties.html +++ b/reference/mark_ties.html @@ -20,7 +20,7 @@ migraph - 1.1.5 + 1.1.7
    diff --git a/reference/migraph-package.html b/reference/migraph-package.html index 63b9650e..5f1bd7bb 100644 --- a/reference/migraph-package.html +++ b/reference/migraph-package.html @@ -18,7 +18,7 @@ migraph - 1.1.5 + 1.1.7
    diff --git a/reference/mpn_bristol.html b/reference/mpn_bristol.html index 65d9f1ae..b26fbc56 100644 --- a/reference/mpn_bristol.html +++ b/reference/mpn_bristol.html @@ -21,7 +21,7 @@ migraph - 1.1.5 + 1.1.7 diff --git a/reference/mpn_cow.html b/reference/mpn_cow.html index 5c2264dd..227ad4e5 100644 --- a/reference/mpn_cow.html +++ b/reference/mpn_cow.html @@ -17,7 +17,7 @@ migraph - 1.1.5 + 1.1.7 diff --git a/reference/mpn_elite_mex.html b/reference/mpn_elite_mex.html index 71819b5c..5d09e266 100644 --- a/reference/mpn_elite_mex.html +++ b/reference/mpn_elite_mex.html @@ -31,7 +31,7 @@ migraph - 1.1.5 + 1.1.7 diff --git a/reference/mpn_elite_usa.html b/reference/mpn_elite_usa.html index 8c865b87..8957edb6 100644 --- a/reference/mpn_elite_usa.html +++ b/reference/mpn_elite_usa.html @@ -28,7 +28,7 @@ migraph - 1.1.5 + 1.1.7 diff --git a/reference/mpn_evs.html b/reference/mpn_evs.html index b09ef038..9b218a44 100644 --- a/reference/mpn_evs.html +++ b/reference/mpn_evs.html @@ -21,7 +21,7 @@ migraph - 1.1.5 + 1.1.7 diff --git a/reference/mpn_ryanair.html b/reference/mpn_ryanair.html index 76464930..a549aff3 100644 --- a/reference/mpn_ryanair.html +++ b/reference/mpn_ryanair.html @@ -27,7 +27,7 @@ migraph - 1.1.5 + 1.1.7 diff --git a/reference/mpn_senate112.html b/reference/mpn_senate112.html index b7e91ff9..c77194ba 100644 --- a/reference/mpn_senate112.html +++ b/reference/mpn_senate112.html @@ -33,7 +33,7 @@ migraph - 1.1.5 + 1.1.7 diff --git a/reference/network_census.html b/reference/network_census.html index 780d6b4b..7974d967 100644 --- a/reference/network_census.html +++ b/reference/network_census.html @@ -17,7 +17,7 @@ migraph - 1.1.5 + 1.1.7 diff --git a/reference/node_census.html b/reference/node_census.html index a68b3d2e..3262ea7c 100644 --- a/reference/node_census.html +++ b/reference/node_census.html @@ -21,7 +21,7 @@ migraph - 1.1.5 + 1.1.7 @@ -143,51 +143,51 @@

    Examples

    task_eg <- manynet::to_named(manynet::to_uniplex(manynet::ison_algebra, "task_tie"))
     (tie_cen <- node_tie_census(task_eg))
     #> # A tibble: 16 × 33
    -#>    names       fromSydney fromMonique fromJoan fromTucker fromAnnie fromTammie
    -#>    <chr>            <dbl>       <dbl>    <dbl>      <dbl>     <dbl>      <dbl>
    -#>  1 Sydney               0           1        0          0         1          1
    -#>  2 Monique              0           0        1          0         0          0
    -#>  3 Joan                 0           1        0          0         1          1
    -#>  4 Tucker               0           0        0          0         0          0
    -#>  5 Annie                1           0        1          0         0          1
    -#>  6 Tammie               0           0        1          0         1          0
    -#>  7 Marco                0           1        1          0         0          1
    -#>  8 Eileen               1           1        1          0         1          1
    -#>  9 Lester               1           0        0          0         0          0
    -#> 10 Claude               1           0        1          1         1          1
    -#> 11 Isabel               1           0        1          0         1          1
    -#> 12 Christopher          1           1        0          0         0          1
    -#> 13 Alexander            1           1        0          0         1          0
    -#> 14 Karl                 0           1        1          0         0          1
    -#> 15 Maximus              1           1        1          0         1          0
    -#> 16 Chelsey              1           1        1          1         1          1
    -#> # ℹ 26 more variables: fromMarco <dbl>, fromEileen <dbl>, fromLester <dbl>,
    -#> #   fromClaude <dbl>, fromIsabel <dbl>, fromChristopher <dbl>,
    -#> #   fromAlexander <dbl>, fromKarl <dbl>, fromMaximus <dbl>, fromChelsey <dbl>,
    -#> #   toSydney <dbl>, toMonique <dbl>, toJoan <dbl>, toTucker <dbl>,
    -#> #   toAnnie <dbl>, toTammie <dbl>, toMarco <dbl>, toEileen <dbl>,
    -#> #   toLester <dbl>, toClaude <dbl>, toIsabel <dbl>, toChristopher <dbl>,
    -#> #   toAlexander <dbl>, toKarl <dbl>, toMaximus <dbl>, toChelsey <dbl>
    +#>    names fromJose fromGeraldine fromMarissa fromColton fromHeidi fromChristopher
    +#>    <chr>    <dbl>         <dbl>       <dbl>      <dbl>     <dbl>           <dbl>
    +#>  1 Jose         0             1           0          0         1               1
    +#>  2 Gera…        0             0           1          0         0               0
    +#>  3 Mari…        0             1           0          0         1               1
    +#>  4 Colt…        0             0           0          0         0               0
    +#>  5 Heidi        1             0           1          0         0               1
    +#>  6 Chri…        0             0           1          0         1               0
    +#>  7 Flos…        0             1           1          0         0               1
    +#>  8 Rosa         1             1           1          0         1               1
    +#>  9 Etta         1             0           0          0         0               0
    +#> 10 Mere…        1             0           1          1         1               1
    +#> 11 Darl…        1             0           1          0         1               1
    +#> 12 Cole         1             1           0          0         0               1
    +#> 13 Alexa        1             1           0          0         1               0
    +#> 14 Micah        0             1           1          0         0               1
    +#> 15 Xand…        1             1           1          0         1               0
    +#> 16 Alice        1             1           1          1         1               1
    +#> # ℹ 26 more variables: fromFlossie <dbl>, fromRosa <dbl>, fromEtta <dbl>,
    +#> #   fromMeredith <dbl>, fromDarlene <dbl>, fromCole <dbl>, fromAlexa <dbl>,
    +#> #   fromMicah <dbl>, fromXander <dbl>, fromAlice <dbl>, toJose <dbl>,
    +#> #   toGeraldine <dbl>, toMarissa <dbl>, toColton <dbl>, toHeidi <dbl>,
    +#> #   toChristopher <dbl>, toFlossie <dbl>, toRosa <dbl>, toEtta <dbl>,
    +#> #   toMeredith <dbl>, toDarlene <dbl>, toCole <dbl>, toAlexa <dbl>,
    +#> #   toMicah <dbl>, toXander <dbl>, toAlice <dbl>
     (triad_cen <- node_triad_census(task_eg))
     #> # A tibble: 16 × 17
     #>    names  X003  X012  X102 X021D X021U X021C X111D X111U X030T X030C  X201 X120D
     #>    <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
    -#>  1 Sydn…     6    12    32     0     1     0     7     3     0     0     8     1
    -#>  2 Moni…    15    12    42     0     0     0     0     5     0     0     4     1
    -#>  3 Joan     20     5    37     0     0     0     3     3     0     0    12     0
    -#>  4 Tuck…   102     0     3     0     0     0     0     0     0     0     0     0
    -#>  5 Annie    15     5    41     0     0     0     2     1     0     0    13     0
    -#>  6 Tamm…    20     5    41     0     0     0     3     2     0     0    11     0
    -#>  7 Marco    28     0    51     0     0     0     0     2     0     0     6     0
    -#>  8 Eile…    18     0    42     0     0     0     2     1     0     0    18     0
    -#>  9 Lest…    86     2    17     0     0     0     0     0     0     0     0     0
    -#> 10 Clau…    25     6    35     0     0     0     3     3     0     0    15     0
    -#> 11 Isab…    65     4    36     0     0     0     0     0     0     0     0     0
    -#> 12 Chri…    72     3    30     0     0     0     0     0     0     0     0     0
    -#> 13 Alex…    76     3    26     0     0     0     0     0     0     0     0     0
    -#> 14 Karl     56     2    47     0     0     0     0     0     0     0     0     0
    -#> 15 Maxi…    58     5    42     0     0     0     0     0     0     0     0     0
    -#> 16 Chel…     0     0     0     0     0     0     0     0     0     0    44     0
    +#>  1 Jose      6    12    32     0     1     0     7     3     0     0     8     1
    +#>  2 Gera…    15    12    42     0     0     0     0     5     0     0     4     1
    +#>  3 Mari…    20     5    37     0     0     0     3     3     0     0    12     0
    +#>  4 Colt…   102     0     3     0     0     0     0     0     0     0     0     0
    +#>  5 Heidi    15     5    41     0     0     0     2     1     0     0    13     0
    +#>  6 Chri…    20     5    41     0     0     0     3     2     0     0    11     0
    +#>  7 Flos…    28     0    51     0     0     0     0     2     0     0     6     0
    +#>  8 Rosa     18     0    42     0     0     0     2     1     0     0    18     0
    +#>  9 Etta     86     2    17     0     0     0     0     0     0     0     0     0
    +#> 10 Mere…    25     6    35     0     0     0     3     3     0     0    15     0
    +#> 11 Darl…    65     4    36     0     0     0     0     0     0     0     0     0
    +#> 12 Cole     72     3    30     0     0     0     0     0     0     0     0     0
    +#> 13 Alexa    76     3    26     0     0     0     0     0     0     0     0     0
    +#> 14 Micah    56     2    47     0     0     0     0     0     0     0     0     0
    +#> 15 Xand…    58     5    42     0     0     0     0     0     0     0     0     0
    +#> 16 Alice     0     0     0     0     0     0     0     0     0     0    44     0
     #> # ℹ 4 more variables: X120U <dbl>, X120C <dbl>, X210 <dbl>, X300 <dbl>
     node_quad_census(manynet::ison_southern_women)
     #> # A tibble: 32 × 13
    diff --git a/reference/over.html b/reference/over.html
    index aa7758be..346eda3f 100644
    --- a/reference/over.html
    +++ b/reference/over.html
    @@ -17,7 +17,7 @@
           
           
             migraph
    -        1.1.5
    +        1.1.7
           
         
    diff --git a/reference/play-1.png b/reference/play-1.png index e994f422..89cdac0e 100644 Binary files a/reference/play-1.png and b/reference/play-1.png differ diff --git a/reference/play-2.png b/reference/play-2.png index 4314b6d3..1fa36b2c 100644 Binary files a/reference/play-2.png and b/reference/play-2.png differ diff --git a/reference/play-3.png b/reference/play-3.png index b8c512a0..9f98947e 100644 Binary files a/reference/play-3.png and b/reference/play-3.png differ diff --git a/reference/play.html b/reference/play.html index 33ed5ab8..2825031f 100644 --- a/reference/play.html +++ b/reference/play.html @@ -17,7 +17,7 @@ migraph - 1.1.5 + 1.1.7 @@ -93,7 +93,7 @@

    Functions to play games on networks

    attribute, heterophily = 0, who_moves = c("ordered", "random", "most_dissatisfied"), - choice_function = c("satisficing", "optimising"), + choice_function = c("satisficing", "optimising", "minimising"), steps )
    @@ -127,7 +127,7 @@

    Arguments

    transmissibility
    -

    A proportion indicating the transmission rate, +

    The transmission rate probability, \(\beta\). By default 1, which means any node for which the threshold is met or exceeded will become infected. @@ -136,17 +136,17 @@

    Arguments

    latency
    -

    A proportion indicating the rate at which those exposed -become infectious (infected), \(\sigma\). +

    The inverse probability those who have been exposed +become infectious (infected), \(\sigma\) or \(\kappa\). For example, if exposed individuals take, on average, -four days to become infectious, then \(\sigma = 0.25\). +four days to become infectious, then \(\sigma = 0.75\) (1/1-0.75 = 1/0.25 = 4). By default 0, which means those exposed become immediately infectious (i.e. an SI model). Anything higher results in e.g. a SEI model.

    recovery
    -

    A proportion indicating the rate of recovery, -\(\gamma\). +

    The probability those who are infected +recover, \(\gamma\). For example, if infected individuals take, on average, four days to recover, then \(\gamma = 0.25\). By default 0, which means there is no recovery (i.e. an SI model). @@ -154,8 +154,8 @@

    Arguments

    waning
    -

    A proportion indicating the rate at which those who are -recovered become susceptible again, \(\xi\). +

    The probability those who are recovered +become susceptible again, \(\xi\). For example, if recovered individuals take, on average, four days to lose their immunity, then \(\xi = 0.25\). By default 0, which means any recovered individuals retain lifelong immunity (i.e. an SIR model). @@ -241,7 +241,8 @@

    Arguments

    One of the following options: "satisficing" (the default) will move the node to any coordinates that satisfy their heterophily threshold, -whereas "optimising" will move the node to coordinates that are most homophilous.

    +"optimising" will move the node to coordinates that are most homophilous, +and "minimising" distance will move the node to the next nearest unoccupied coordinates.

    @@ -267,43 +268,42 @@

    Examples

    plot(play_diffusion(smeg, recovery = 0.4)) plot(play_diffusions(smeg, times = 20)) -#> Warning: Removed 24 rows containing missing values (`geom_smooth()`). -#> Warning: Removed 51 rows containing missing values (`geom_smooth()`). play_learning(ison_networkers, rbinom(manynet::network_nodes(ison_networkers),1,prob = 0.25)) -#> # A tibble: 7 × 32 -#> `LIN FREEMAN` `DOUG WHITE` `EV ROGERS` `RICHARD ALBA` `PHIPPS ARABIE` +#> # A tibble: 8 × 32 +#> `Lin Freeman` `Doug White` `Ev Rogers` `Richard Alba` `Phipps Arabie` #> <dbl> <dbl> <dbl> <dbl> <dbl> -#> 1 0 0 1 0 0 -#> 2 0.177 0.236 0 0.0755 0.181 -#> 3 0.157 0.150 0.178 0.164 0.154 -#> 4 0.150 0.155 0.150 0.150 0.150 -#> 5 0.153 0.151 0.151 0.152 0.152 -#> 6 0.151 0.152 0.152 0.152 0.151 -#> 7 0.152 0.151 0.151 0.152 0.152 -#> # ℹ 27 more variables: `CAROL BARNER-BARRY` <dbl>, `GARY COOMBS` <dbl>, -#> # `RUSS BERNARD` <dbl>, `JOHN BOYD` <dbl>, `RON BURT` <dbl>, -#> # `PAT DOREIAN` <dbl>, `CLAUDE FISCHER` <dbl>, `BRIAN FOSTER` <dbl>, -#> # `MARK GRANOVETTER` <dbl>, `MAUREEN HALLINAN` <dbl>, `PAUL HOLLAND` <dbl>, -#> # `JACK HUNTER` <dbl>, `DAVOR JEDLICKA` <dbl>, `CHARLES KADUSHIN` <dbl>, -#> # `ED LAUMANN` <dbl>, `SAM LEINHARDT` <dbl>, `JOEL LEVINE` <dbl>, -#> # `NAN LIN` <dbl>, `NICK MULLINS` <dbl>, `DON PLOCH` <dbl>, … +#> 1 0 0 1 0 0 +#> 2 0.198 0.181 0 0.263 0.258 +#> 3 0.165 0.179 0.186 0.165 0.156 +#> 4 0.182 0.177 0.167 0.183 0.184 +#> 5 0.176 0.179 0.181 0.178 0.176 +#> 6 0.178 0.178 0.177 0.178 0.179 +#> 7 0.178 0.178 0.178 0.178 0.178 +#> 8 0.178 0.178 0.178 0.178 0.178 +#> # ℹ 27 more variables: `Carol Barner-Barry` <dbl>, `Gary Coombs` <dbl>, +#> # `Russ Bernard` <dbl>, `John Boyd` <dbl>, `Ron Burt` <dbl>, +#> # `Pat Doreian` <dbl>, `Claude Fischer` <dbl>, `Brian Foster` <dbl>, +#> # `Mark Granovetter` <dbl>, `Maureen Hallinan` <dbl>, `Paul Holland` <dbl>, +#> # `Jack Hunter` <dbl>, `Davor Jedlicka` <dbl>, `Charles Kadushin` <dbl>, +#> # `Ed Laumann` <dbl>, `Sam Leinhardt` <dbl>, `Joel Levine` <dbl>, +#> # `Nan Lin` <dbl>, `Nick Mullins` <dbl>, `Don Ploch` <dbl>, … startValues <- rbinom(100,1,prob = 0.5) startValues[sample(seq_len(100), round(100*0.2))] <- NA latticeEg <- manynet::create_lattice(100) latticeEg <- manynet::add_node_attribute(latticeEg, "startValues", startValues) latticeEg -#> # A undirected tbl_graph with 100 nodes and 342 ties +#> # A undirected network with 100 nodes and 342 ties #> # A tibble: 100 × 1 #> startValues #> <int> -#> 1 0 +#> 1 NA #> 2 NA -#> 3 NA +#> 3 0 #> 4 0 #> 5 1 -#> 6 0 +#> 6 NA #> # ℹ 94 more rows #> # A tibble: 342 × 2 #> from to @@ -316,26 +316,21 @@

    Examples

    #> 6 2 12 #> # ℹ 336 more rows play_segregation(latticeEg, "startValues", 0.5) -#> [1] "Moving node 5 to node 2" -#> [1] "Moving node 8 to node 3" -#> [1] "Moving node 46 to node 5" -#> [1] "Moving node 35 to node 8" -#> [1] "Moving node 54 to node 11" -#> [1] "Moving node 53 to node 20" -#> [1] "Moving node 70 to node 39" -#> [1] "Moving node 72 to node 50" -#> [1] "Moving node 40 to node 35" -#> [1] "Moving node 86 to node 37" -#> # A undirected tbl_graph with 100 nodes and 342 ties +#> [1] "Moving node 20 to node 57" +#> [1] "Moving node 23 to node 98" +#> [1] "Moving node 74 to node 48" +#> [1] "Moving node 81 to node 64" +#> [1] "Moving node 96 to node 41" +#> # A undirected network with 100 nodes and 342 ties #> # A tibble: 100 × 1 #> startValues #> <int> -#> 1 0 -#> 2 1 -#> 3 1 +#> 1 NA +#> 2 NA +#> 3 0 #> 4 0 -#> 5 0 -#> 6 0 +#> 5 1 +#> 6 NA #> # ℹ 94 more rows #> # A tibble: 342 × 2 #> from to @@ -347,9 +342,9 @@

    Examples

    #> 5 2 11 #> 6 2 12 #> # ℹ 336 more rows - #manynet::autographr(latticeEg, node_color = "startValues", node_size = 5) - #manynet::autographr(play_segregation(latticeEg, "startValues", 0.5), - # node_color = "startValues", node_size = 5) + # manynet::autographr(latticeEg, node_color = "startValues", node_size = 5) + + # manynet::autographr(play_segregation(latticeEg, "startValues", 0.2), + # node_color = "startValues", node_size = 5)
    diff --git a/reference/reexports.html b/reference/reexports.html index 9097a255..d50f2a66 100644 --- a/reference/reexports.html +++ b/reference/reexports.html @@ -44,7 +44,7 @@ migraph - 1.1.5 + 1.1.7 diff --git a/reference/regression-1.png b/reference/regression-1.png index 26cdb393..815160ee 100644 Binary files a/reference/regression-1.png and b/reference/regression-1.png differ diff --git a/reference/regression.html b/reference/regression.html index 50aa1035..43402b93 100644 --- a/reference/regression.html +++ b/reference/regression.html @@ -39,7 +39,7 @@ migraph - 1.1.5 + 1.1.7 @@ -209,8 +209,8 @@

    Examples

    #> # A tibble: 3 × 4 #> term estimate statistic p.value #> <chr> <dbl> <dbl> <dbl> -#> 1 (intercept) -8.47 -0.839 0.75 -#> 2 alter Citations -0.125 -0.791 0.7 +#> 1 (intercept) -8.47 -0.839 0.6 +#> 2 alter Citations -0.125 -0.791 0.55 #> 3 sim Citations 44.9 3.68 0 glance(model1) #> # A tibble: 1 × 8 diff --git a/reference/tests-1.png b/reference/tests-1.png index 9f6a11d3..2a2f9bd1 100644 Binary files a/reference/tests-1.png and b/reference/tests-1.png differ diff --git a/reference/tests-2.png b/reference/tests-2.png index ef47758c..6ae04c00 100644 Binary files a/reference/tests-2.png and b/reference/tests-2.png differ diff --git a/reference/tests.html b/reference/tests.html index 3a8bbaf6..072dcd9c 100644 --- a/reference/tests.html +++ b/reference/tests.html @@ -18,7 +18,7 @@ migraph - 1.1.5 + 1.1.7 @@ -164,8 +164,8 @@

    Examples

    #> QAP Test Results #> #> Observed Value: -0.8571429 -#> Pr(X>=Obs): 0.985 -#> Pr(X<=Obs): 0.08 +#> Pr(X>=Obs): 0.97 +#> Pr(X<=Obs): 0.07 #> plot(qaptest) diff --git a/sitemap.xml b/sitemap.xml index d615555f..077f2675 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -60,6 +60,9 @@ https://snlab-ch.github.io/migraph/reference/degree_centrality.html + + https://snlab-ch.github.io/migraph/reference/diffusion.html + https://snlab-ch.github.io/migraph/reference/eigenv_centrality.html