powered by
Function is useful if parameters on the `PISA' metric should be transformed into competence levels.
num.to.cat(x, cut.points, cat.values = NULL)
Vector with factor values.
Numeric vector.
Numeric vector with cut scores.
Optional: vector with labels for the cut scores. Note: if specified, length of cat.values should be length(cut.points)+1.
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))
Run the code above in your browser using DataLab