Generates a list with two arrays of indices that make up complete enumeration
of all combinations (order does not matter) of elements of vector of length
n
.
combination_indices(n, repeats = FALSE)
n | Number of elements in vector to get combinations of |
---|---|
repeats | Do we allow repeats in pairs? E.g. should a-a, b-b, etc. be allowed in generated pairs? |
A list with two vectors ($a
and $b
) containing integer indices of elements for every pair.
Other helpers:
build_score_fn()
,
get_sweep_pair_counts()
,
get_sweep_results()
,
print.sbm_network()
,
rolling_mean()
,
verify_model()