Stage.2.NormScore {NormData} | R Documentation |
Convert a raw score to a percentile rank
Description
The function Stage.2.NormScore()
can be used to convert the raw test score of a tested person Y_0
into a percentile rank \hat{\pi}_0
(taking into account specified values of the independent variables).
Usage
Stage.2.NormScore(Stage.1.Model, Assume.Homoscedasticity,
Assume.Normality, Score, Rounded=TRUE)
Arguments
Stage.1.Model |
A fitted object of class |
Assume.Homoscedasticity |
Logical. Should homoscedasticity be assumed in conducting the normative conversion? By default, homoscedasticity is assumed when the |
Assume.Normality |
Logical. Should normality of the standardized errors be assumed in conducting the normative conversion? By default, normality is assumed when the |
Score |
A |
Rounded |
Logical. Should the percentile rank be rounded to a whole number? Default |
Details
For details, see Van der Elst (2023).
Value
An object of class Stage.2.NormScore
with components,
Fitted.Model |
A fitted object of class |
Results |
A data frame that contains the observed test score, residuals, percentile rank, ... |
Assume.Homoscedasticity |
The homoscedasticity assumption that was made in the normative conversion. |
Assume.Normality |
The normality assumption that was made in the normative conversion. |
Score |
The test score and the value(s) of the independent variable(s) that were used in the computations. |
Stage.1.Model |
The |
Author(s)
Wim Van der Elst
References
Van der Elst, W. (2024). Regression-based normative data for psychological assessment: A hands-on approach using R. Springer Nature.
See Also
Stage.2.NormTable
, Stage.2.AutoScore
, Bootstrap.Stage.2.NormScore
Examples
# Replicate the normative conversion that was obtained in
# Case study 1 of Chapter 3 in Van der Elst (2023)
# (science exam score = 30 obtained by a female)
# -------------------------------------------------------
library(NormData) # load the NormData package
data(GCSE) # load the GCSE dataset
# Fit the Stage 1 model
Model.1.GCSE <- Stage.1(Dataset=GCSE,
Model=Science.Exam~Gender)
# Stage 2: Convert a science exam score = 30 obtained by a
# female into a percentile rank (point estimate)
Normed_Score <- Stage.2.NormScore(Stage.1.Model=Model.1.GCSE,
Score=list(Science.Exam=30, Gender="F"))
summary(Normed_Score)
plot(Normed_Score)
# Replicate the normative conversion that was obtained in
# Case study 1 of Chapter 7 in Van der Elst (2023)
# (LDST score = 40 obtained by a 20-year-old
# test participant with LE=Low)
# -------------------------------------------------------
library(NormData) # load the NormData package
data(Substitution) # load the Substitution dataset
# Make the new variable Age.C (= Age centered) that is
# needed to fit the final Stage 1 model,
# and add it to the Substitution dataset
Substitution$Age.C <- Substitution$Age - 50
# Fit the final Stage 1 model
Substitution.Model.9 <- Stage.1(Dataset=Substitution,
Alpha=0.005, Model=LDST~Age.C+LE, Order.Poly.Var=1)
summary(Substitution.Model.9)
# Convert an LDST score = 40 obtained by a
# 20-year-old test participant with LE=Low
# into a percentile rank (point estimate)
Normed_Score <- Stage.2.NormScore(
Stage.1.Model=Substitution.Model.9,
Score=list(LDST=40, Age.C=20-50, LE = "Low"))
summary(Normed_Score)
plot(Normed_Score)