Learn R Programming

cmpsR (version 0.1.2)

compute_ss_ratio: #' Compute the Sum of Squares Ratio

Description

#' Compute the Sum of Squares Ratio

Usage

compute_ss_ratio(score, label, MS = FALSE)

Value

the sum of squares ratio

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

Examples

Run this code
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