compute_ss_ratio {cmpsR} | R Documentation |
#' Compute the Sum of Squares Ratio
Description
#' Compute the Sum of Squares Ratio
Usage
compute_ss_ratio(score, label, MS = FALSE)
Arguments
score |
a numeric vector, scores |
label |
a character vector, the label of each score |
MS |
boolean, whether to compute the mean squares instead of the sum of squares. Default is FALSE |
Value
the sum of squares ratio
Examples
score <- c(rnorm(100), rnorm(100, mean = 5))
label <- c(rep("a", 100), rep("b", 100))
compute_ss_ratio(score, label)
[Package cmpsR version 0.1.2 Index]