compute_ss_ratio | R Documentation |
#' Compute the Sum of Squares Ratio
compute_ss_ratio(score, label, MS = FALSE)
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 |
the sum of squares ratio
score <- c(rnorm(100), rnorm(100, mean = 5)) label <- c(rep("a", 100), rep("b", 100)) compute_ss_ratio(score, label)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.