snell {rsnell} | R Documentation |
Calculate Snell scores
Description
This function calculates Snell scores given counts of scores by subpopulation
Usage
snell(table)
Arguments
table |
a frequency table with group labels in rows and the original scores in columns. This can be derived using the buildfreqtable function. |
Value
a vector of scores corresponding to the columns of the input frequency table.
References
http://140.136.247.242/~stat2016/stat/NoteOnSnellComp.pdf
Examples
library(dplyr)
mydata <- data.frame("Groups" = rep(c("A", "B", "C", "D"), 10),
"Scores" = round(runif(40, 0, 5)))
freqtable <- buildfreqtable(data = mydata, trait = "Scores", subgroup = "Groups")
snell(freqtable)
[Package rsnell version 0.1 Index]