score_rollup: Score intervals

View source: R/norming.R

score_rollupR Documentation

Score intervals

Description

Classifies a numeric sequence of scores into a sequence of classes of scores.

Usage

score_rollup(x, x.min = NULL, x.max = NULL,
    direction = c("forward", "backward"),
    extremes = c(FALSE, FALSE))

Arguments

x

Numeric vector sorted in ascending or descending order.

x.min

Theoretical minimum of x.

x.max

Theoretical minimum of x.

direction

Specify if the classification of scores must be performed in ascending (forward) or descending (backward) order. Default is forward.

extremes

Should a value be assigned to extreme scores?. The argument can include two logical values, the first one refferring to the lower extreme, the second one referring to the upper extreme. If just one value is provided, it will be used for both extremes.

Details

Missed scores must be coded by using an empty string.

Author(s)

Davide Massidda davide.massidda@gmail.com

See Also

score_implode, score_explode

Examples

x <- c(1,9,12,12,13,14,15,15,17,18,19,19,19,20,21,22,23,24)
xf <- score_rollup(x,x.min=0,x.max=24,direction="forward")
xb <- score_rollup(x,x.min=0,x.max=24,direction="backward")
data.frame(x,xf,xb)

DavideMassidda/testing documentation built on Oct. 12, 2023, 4:32 p.m.