jrt {jrt} | R Documentation |
Fit ordinal IRT models on judgment data and return factor scores and statistics.
Description
This function automatically selects appropriate polytomous IRT
models based on an information criterion (e.g. Corrected AIC), then returns
factor scores, standard errors and various IRT psychometric information, as
well as more traditionnal ("CTT") psychometric information. All IRT
estimation procedures are executed with the package mirt
(Chalmers,
2012). The non-IRT procedures use packages psych
and irr
.
Usage
jrt(
data,
irt.model = "auto",
summary = T,
selection.criterion = "AIC",
response.categories = "auto",
remove.judges.with.unobserved.categories = F,
additional.stats = F,
method.factor.scores = "EAP",
return.mean.scores = T,
prefix.for.outputs = "Judgments",
column.names = "Judge",
maximum.iterations = 2000,
convergence.threshold = 0.001,
estimation.algorithm = "EM",
status.verbose = F,
estimation.package.warnings = F,
digits = 3,
plots = T,
greyscale = F,
progress.bar = T,
method.item.fit = "X2",
select.variables.that.contain = NULL,
silent = F,
show.calls = F,
debug = F
)
Arguments
data |
A dataframe or matrix including the judgments to be scored. Note that so far missing data are not supported. This is the only required argument for the function. |
irt.model |
A string value with the name of the model to fit. It can be:
For convenience, models can also be called by their full names
(e.g.
|
summary |
A logical to indicate if summary statistics should be
displayed as messages (default is |
selection.criterion |
A string with the criterion for the automatic
selection. The default is the Akaike Information Criterion
( |
response.categories |
A numeric vector to indicate the possible score
values. For example, use |
remove.judges.with.unobserved.categories |
A logical value to indicate whether to only keep the
judges with all categories observed (based on the |
additional.stats |
A logical to indicate whether to report other
("non-IRT") reliability statistics (based on computations from packages
'psych' and 'irr'). Defaults to |
method.factor.scores |
A string to indicate the method used to compute
the factor scores. Bayesian methods ( |
return.mean.scores |
A logical to indicate whether to return the mean
scores in the output (defaults to |
prefix.for.outputs |
A character used as prefix to name the vectors in the
output data frames. Default is |
column.names |
A character to indicate the preferred name to give to a Judge. Defaults to |
maximum.iterations |
A numeric indicating the maximum number of
iterations used to fit the model (default is |
convergence.threshold |
A numeric to indicate the threshold used to
tolerate convergence (default is |
estimation.algorithm |
A string indicating the estimation algorithm. Can
notably be |
status.verbose |
A logical to indicate whether to output messages
indicating what the package is doing. Defaults to |
estimation.package.warnings |
A logical to indicate whether to output
the warnings and messages of the estimation package. Defaults to
|
digits |
A numeric to indicate the number of digits to round output
statistics by (default is |
plots |
A logical to indicate whether to plot the total information plot
and judge category curves ( |
greyscale |
A logical to indicate whether the plots should be in greyscale ( |
progress.bar |
A logical to indicate whether to show a progress bar
during the automatic model selection. Defaults to |
method.item.fit |
A character value to indicate which fit statistic to use
for the item fit output. Passed to the |
select.variables.that.contain |
A character string to use as data the
variables in the original dataset that contain the string. Based on the
|
silent |
A logical (defaults to |
show.calls |
A logical to report the calls made to fit the different models. This is meant as a didactic options for users who may be interested in switching over to |
debug |
A logical to report debug messages (used in development).
Defaults to |
Value
An object of S4-class jrt
. The factor scores can be accessed
in slot @output.data
.
References
Chalmers, R., P. (2012). mirt: A Multidimensional Item Response Theory Package for the R Environment. Journal of Statistical Software, 48(6), 1-29. doi:10.18637/jss.v048.i06
Myszkowski, N., & Storme, M. (2019). Judge Response Theory? A call to upgrade our psychometrical account of creativity judgments. Psychology of Aesthetics, Creativity and the Arts, 13(2), 167-175. doi:10.1037/aca0000225
Myszkowski, N. (2021). Development of the R library jrt
: Automated item response theory procedures for judgment data and their application with the consensual assessment techniques. Psychology of Aesthetics, Creativity and the Arts, 15(3), 426-438. doi:10.1037/aca0000287
Examples
# Load dataset
data <- jrt::ratings
# Fit models
fit <- jrt(data,
irt.model = "GRM", # to manually select a model
plots = FALSE) # to remove plots
# Extract the factor scores
fit@factor.scores # In a dataframe with standard errors
fit@factor.scores.vector # As a numeric vector
# See vignette for more options