mirandom | R Documentation |
mirandom
takes a collection of target and decoy scores for m
hypotheses and returns a winning score and label attached to each.
The argument scores
must be organised in an m x (d + 1) matrix,
where d is the number of decoy scores. The first column of scores
must contain the target scores.
mirandom(scores, c = 0.5, lambda = 0.5)
scores |
An m x (d + 1) matrix where m is the number of hypothesis and
d is the number of decoy scores for each hypothesis. The first column of
|
c |
Determines the ranks of the target score that are considered
winning. Defaults to |
lambda |
Determines the ranks of the target score that are
considered losing. Defaults to |
A m x 2 matrix where m is the number of hypotheses. The first column contains the winning scores and the second column contains the corresponding labels.
target_scores <- rnorm(200, mean = 1.5) decoy_scores <- matrix(rnorm(600, mean = 0), ncol = 3) scores <- cbind(target_scores, decoy_scores) mirandom(scores)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.