calc_dsi_topn: Averages the DSI over the top n partners

Description Usage Arguments

Description

Averages for entire study period over all groups or per group and per year if specified

Usage

1
2
3
4
5
6
7
calc_dsi_topn(
  dsi_table,
  slots = 3,
  group_true = FALSE,
  year_true = FALSE,
  dsi_column = "DSI"
)

Arguments

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


urskalbitzer/daginR documentation built on Jan. 21, 2020, 1:26 a.m.