calculateLocalConsistency {transite} | R Documentation |
C++ implementation of Local Consistency Score algorithm.
calculateLocalConsistency(x, numPermutations, minPermutations, e)
x |
numeric vector that contains values for shuffling |
numPermutations |
maximum number of permutations performed in Monte Carlo test for consistency score |
minPermutations |
minimum number of permutations performed in Monte Carlo test for consistency score |
e |
stop criterion for consistency score Monte Carlo test:
aborting permutation
process after observing |
list with score
, p.value
, and n
components,
where score
is the raw local consistency score (usually not used),
p.value
is the associated p-value for that score, obtained by
Monte Carlo testing, and n
is the number of permutations performed
in the Monte Carlo test (the higher, the more significant)
poor.enrichment.spectrum <- c(0.1, 0.5, 0.6, 0.4, 0.7, 0.6, 1.2, 1.1, 1.8, 1.6) local.consistency <- calculateLocalConsistency(poor.enrichment.spectrum, 1000000, 1000, 5) enrichment.spectrum <- c(0.1, 0.3, 0.6, 0.7, 0.8, 0.9, 1.2, 1.4, 1.6, 1.4) local.consistency <- calculateLocalConsistency(enrichment.spectrum, 1000000, 1000, 5)