std_score: From raw scores to standard scores

View source: R/scoring.R

std_scoreR Documentation

From raw scores to standard scores

Description

Rescale a vector of raw scores on a giver standard scale.

Usage

std_score(x, m = NULL, s = NULL,
    scale = c("z","t","nce","iq","wss","stanine","sten"),
    integer = FALSE, out.names = x)

Arguments

x

Vector of raw scores.

m

Mean of observed data.

s

Standard deviation of the population. If NULL, the mean of x will be used.

scale

Reference scale of the population. If NULL, the standard deviation of x will be used.

integer

Logical. If TRUE, data in output will bet rounded to nearest integer.

out.names

Names for the elements in the output vector (use NULL to exclude names).

Details

If m or s are NULL, the mean or the standard deviation of x will be used to scale the observed data.

See Also

raw_score

Examples

raw <- c(23, 25, 26, 26, 28, 29, 33, 35, 36, 39)
std_score(raw, scale="T")

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