Returns full block matrix of link probabilities given the group memberships based on probabilities of links within each of the groups and between in- and out-group members

gen_block_matrix(p_edge_within, p_edge_between, .ord = NULL)

Arguments

p_edge_within

named list of numeric vectors giving probability of link between in-group members and out-group members for each of groups

p_edge_between

named list of numeric values giving probability of link between in- and out-group member for each of groups

.ord

character vector of ordered names of all possible combinations of group memberships. Default is NULL to generate the order automatically

Value

2^K by 2^K matrix of probabilities of establishing a link

Examples

if (FALSE) {
gen_block_matrix(p_edge_within = list(known = c(0.05, 0.05), hidden = c(0.05, 0.9)),
                 p_edge_between = list(known = 0.05, hidden = 0.01))
}