Averages for entire study period over all groups or per group and per year if specified
1 2 3 4 5 6 7 | calc_dsi_topn(
dsi_table,
slots = 3,
group_true = FALSE,
year_true = FALSE,
dsi_column = "DSI"
)
|
dsi_table |
Table with DSI values for dyads of IndA and IndB |
slots |
Set the number of top partners to be included |
group_true |
Set to TRUE, if the DSI should be averaged per group. Default is FALSE in case no GroupCode-column is provided. Make sure that column GroupCode exists when set to TRUE. |
year_true |
Set to TRUE, if the DSI should be averaged per year. Default is FALSE in case no Year-column is provided (I also believe this is what Silk et al. did in their publications). Make sure that column YearOf exists when set to TRUE. |
dsi_column |
Specify how the DSI column is labelled. Default is "weight" as for the Social Network Parameter calculation |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.