powered by
#' Compute the Sum of Squares Ratio
compute_ss_ratio(score, label, MS = FALSE)
the sum of squares ratio
a numeric vector, scores
a character vector, the label of each score
boolean, whether to compute the mean squares instead of the sum of squares. Default is FALSE
score <- c(rnorm(100), rnorm(100, mean = 5)) label <- c(rep("a", 100), rep("b", 100)) compute_ss_ratio(score, label)
Run the code above in your browser using DataLab