valueConverter: win-loss probability matrix value converter

Description Usage Arguments Value See Also Examples

View source: R/conductance.R

Description

valueConverter converts or transforms all values (which range from 0.0 to 1.0) in the win-loss probability matrix into 0.5 - 1.0

Usage

1

Arguments

matrix

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

Value

a matrix of win-loss probability ranging from 0.5 - 1.0.

See Also

conductance, individualDomProb, dyadicLongConverter

Examples

1
2
3
4
5
6
7
# 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
convertedValue <- valueConverter(perm2$p.hat)

Perc documentation built on April 28, 2020, 1:08 a.m.