map_elongate {idmact}R Documentation

Elongate Mapping of Raw Scores to Scale Scores

Description

This function elongates the mapping of raw scores to scale scores. Each element in 'map_raw' and 'map_scale' is repeated according to the length of the corresponding 'map_raw' element, resulting in equal-length lists of map_raw' and 'map_scale' scores.

Usage

map_elongate(map_raw, map_scale)

Arguments

map_raw

A list where each element is a number or a numeric vector representing a set of raw scores. Each vector in 'map_raw' should have a corresponding element in 'map_scale'.

map_scale

A list where each element represents a scale score corresponding to the raw scores in 'map_raw'. Each element in 'map_scale' is repeated times the length of the corresponding element in 'map_raw'.

Value

A named list with two components: 'map_raw' and 'map_scale'. Each component is a list representing the elongated mapping of raw scores to scale scores.

Examples

# Elongate the mapping of raw scores (1:5 and 6:10) to scale scores (20 and 21)
map_elongate(map_raw = list(1:5, 6:10),
             map_scale = list(20, 21))

[Package idmact version 1.0.1 Index]