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)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.