QAPLogit formulas
Dyadic logistic model
For a binary dyadic outcome
Equivalently:
Dyad extraction
For directed networks, the default dyad set is:
For undirected networks, the default dyad set is the upper triangle:
Self-dyads are excluded by default.
QAP node-label permutations
For each permutation
The dyadic predictors remain fixed. The model is then re-fit on the permuted outcome to obtain a permutation distribution of coefficients.
Empirical p-values
The initial implementation uses a plus-one empirical p-value:
where:
is the observed coefficient; is the coefficient from permutation ; is the number of permutations.
This plus-one correction avoids returning zero p-values from a finite permutation sample.