Learn R Programming

Perc (version 0.1.6)

dyadicLongConverter: dyadic long format converter

Description

dyadicLongConverter convert win-loss probability matrix into long format for each dyad

Usage

dyadicLongConverter(matrix)

Arguments

matrix

the win-loss matrix which is the second output from conductance.

Value

a dataframe of dyadic level win-loss probability and ranking certainty.

Details

values on the diagonal of the matrix are not included in the converted long-format data.

See Also

conductance, valueConverter, individualDomProb

Examples

Run this code
# NOT RUN {
# convert an edgelist to conflict matrix
confmatrix <- as.conflictmat(sampleEdgelist)
# find win-loss probability matrix
perm2 <- conductance(confmatrix, 2)
perm2$imputed.conf
perm2$p.hat
dl <- dyadicLongConverter(perm2$p.hat)
# }

Run the code above in your browser using DataLab