monadic_w | R Documentation |
Create a W matrix. With panel data, this will produce a block diagonal matrix.
monadic_w(
dat,
origin = "unit1",
destination = "unit2",
w = "w",
time = NULL,
row_normalize = TRUE
)
dat |
directed dyadic dataset (data.frame) |
origin |
name of origin id column (character) |
destination |
name of destination id column (character) |
w |
name of distance/weights column (character) |
time |
name of the (optional) time variable column (character) |
row_normalize |
should each value of the W matrix be divided by the row-wise sum? (boolean) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.