num.to.cat {eatModel} | R Documentation |
Function is useful if parameters on the ‘PISA’ metric should be transformed into competence levels.
num.to.cat(x, cut.points, cat.values = NULL)
x |
Numeric vector. |
cut.points |
Numeric vector with cut scores. |
cat.values |
Optional: vector with labels for the cut scores. Note: if specified, length of cat.values should be length(cut.points)+1. |
Vector with factor values.
Sebastian Weirich
values <- rnorm(10,0,1.5) * 100 + 500 num.to.cat(x = values, cut.points = 390+0:3*75) num.to.cat(x = values, cut.points = 390+0:3*75, cat.values = c("1a", "1b", 2:4))