raw2gp: Scale raw grades to gp scores

View source: R/scaling.R

raw2gpR Documentation

Scale raw grades to gp scores

Description

Scale raw grades to gp scores

Usage

raw2gp(x, breaks, values = c(4.5, 3.5, 2.5, 1.5, 0.5,
  0)[1:length(breaks)])

Arguments

x

raw scores to recode

breaks

vector of break points between benchmarks

values

vector of values to convert break points to. Interpolation is used for other values.

Details

Both 'breaks' and 'values' are sorted into decreasing order before matching them up. If the lengths of 'breaks' and 'values' differ, the longer is truncated to make them equal length.

Examples

x <- c(50, 63, 78, 91, 54, 17)
raw2gp(x, breaks = seq(50, 100, by = 10))


rpruim/grading documentation built on May 4, 2023, 7:28 a.m.