View source: R/RankOrderData.R
rankorderdata | R Documentation |
Function rankorderdata
rank-orders the data
with respect to some variable (diagnostic variable).
rankorderdata(score, class, dec = TRUE)
score |
A vector containing (diagnostic) scores. |
class |
A vector containing the class. |
dec |
Logical. |
A dataframe, rank-ordered with respect to the score.
rankorderdata
is used internally in other function(s) of ROCit.
Riaz Khan, mdriazahmed.khan@jacks.sdstate.edu
score <- c(0.4 * runif(20) + 0.2, 0.4*runif(20))
class <- c(rep("A",20), rep("B",20))
returndata <- rankorderdata(score, class, dec = FALSE)
returndata
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.