makelegal: adjust grades to be "legal", not one short of a letter grade...

Description Usage Arguments Details Examples

View source: R/fun1.R

Description

Convert possibly decimal grades to integers not in a forbidden set, which can be specified by the user, with optional "fudge factor" (see Details)

Usage

1
2
3
4
5
makelegal(
  x,
  nogood = make.legal.grades::grade_boundaries$number_grade - 1,
  fudge = 0
)

Arguments

x

vector of decimal grades (on scale to be reported)

nogood

vector of grades not to be awarded

fudge

fudge factor (see Details)

Details

Default nogood are grades one below a GPA boundary at University of Toronto. My standard practice is to say that anything that would round to one less than a grade boundary goes down to the next integer below (ie. 79.6 rounds up to 80, but 79.4 rounds to 79 and is rounded one more down to 78). If you prefer some other behaviour, adjust fudge appropriately. For example, fudge=0.5 would round anything bigger than 79 up to 80, fudge=-0.5 would round anything less than 80 down, and a tiny adjustment like fudge=0.01 would give students just below 79 a chance to receive 80.

Examples

1
2
3
makelegal(c(79.6, 79.4))
makelegal(79.4, fudge=0.5)
makelegal(c(81.4, 79.4), nogood=81)

nxskok/make.legal.grades documentation built on April 22, 2021, 10:41 a.m.