Get an item's or interaction's score bounds
Source:R/AssessmentItem.R, R/Choice.R, R/Entry.R, and 1 more
getScoreBounds.RdGet an item's or interaction's score bounds
Usage
getScoreBounds(object)
# S4 method for class 'AssessmentItem'
getScoreBounds(object)
# S4 method for class 'Choice'
getScoreBounds(object)
# S4 method for class 'Entry'
getScoreBounds(object)
# S4 method for class 'Gap'
getScoreBounds(object)Value
A numeric vector named minimum and maximum, in score points.
These are the bounds declared in QTI, not the current score or a guarantee
that both endpoints are attainable. Manual grading may leave a score unset.
Details
Choice bounds account for the selected scoring scheme. Entry bounds combine its gap interactions. Extensions can define methods without generating or parsing XML.
Examples
getScoreBounds(singleChoice(choices = c("A", "B", "C"),
points = 2, scoring_scheme = "penalty"))
#> minimum maximum
#> -1 2
getScoreBounds(numericGap(12, points = 2, incorrect = -0.5))
#> minimum maximum
#> -0.5 2.0