Calculates the local tolerance for every trio of genes.

tolerance(a, b, c, tolType)

Arguments

a

Correlation value between the genes A and B.

b

Correlation value between the genes B and C.

c

Correlation value between the genes A and C.

tolType

Calculation type for tolerance (1 for mean, 2 for min and 3 for max).

Value

Returns the value of tolerance.

See also

See vignette for more details about the pairwise correlations.

Examples

tolerance(0.5, -0.65, 0.23, tolType = 1)
#> [1] 2.273145
tolerance(0.5, -0.65, 0.23, tolType = 2)
#> [1] 1.396431
tolerance(0.5, -0.65, 0.23, tolType = 3)
#> [1] 3.666558