compute_ss_ratio: #' Compute the Sum of Squares Ratio

View source: R/helpers.R

compute_ss_ratioR 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)

cmpsR documentation built on July 18, 2022, 9:07 a.m.