R/linear_rank_test_statistic.R

Defines functions linear_rank_test_statistic

linear_rank_test_statistic <- function(x, y) {
  # x: a vector of counts
  # y: a vector of scores
  # Returns the linear rank test statistic
  # The sum of the products of the counts and the scores
  sum(x * y)
}
ocbe-uio/contingencytables documentation built on Aug. 30, 2024, 7:16 a.m.