read.GGUM: Read GGUM2004 Item Parameter Output Files

Description Usage Arguments Details Value References Examples

Description

The read.GGUM function reads an item parameter output file from a previous GGUM2004 calibration. The user must specify the number of items, the number of categories for each item, and the model number used in the GGUM2004 calibration. The model numbers correspond with the model numbers listed in the GGUM2004 User's Guide (Roberts, Shim, & Cui, 2008):

  1. Constant unit version of the generalized graded unfolding model (GGUM)

  2. Multiple unit version of the GGUM

  3. Rating scale version of the GGUM

  4. Partial credit version of the GGUM

  5. Generalized constant unit version of the GGUM

  6. Generalized multiple unit version of the GGUM

  7. Generalized rating scale version of the GGUM

  8. Generalized graded unfolding model (GGUM)

Usage

1
read.GGUM(file, numItems, numCats, model = 8)

Arguments

file

a character vector of length one indicating the name of the GGUM2004 item parameter output file (e.g., "ex1_pars.txt")

numItems

a numeric vector of length one indicating the number of items in the GGUM2004 calibration (e.g., 23)

numCats

a numeric vector indicating the number of response categories for each item. The vector may either be of length one if the number of response categories is constant across items (e.g., 4) or of a length equal to the number of items (e.g., c(4,3,3,...,4))

model

a numeric vector of length one indicating the unfolding model estimated in the previous GGUM2004 calibration (e.g., 8)

Details

This function reads a single GGUM2004 item parameter output file into an Ix(C+3) numeric matrix, where I denotes the number of items and C denotes the maximum number of response categories across items. Regardless of the unfolding model estimated in the GGUM2004 calibration, the parameters will be converted to a standard format, with item numbers in the first column and item parameter estimates in columns 2 to C+3. Item parameter estimates must be specified in the following order: δ, α, {τ}_0, {τ}_1, ..., and {τ}_k, where {τ}_k denotes the location of the highest response category threshold. For models 1, 2, 5, and 6, the λ parameter is converted to response category thresholds.

Value

Returns a numeric matrix of item parameter estimates with one row for each item and one column for each parameter type.

References

Roberts, J. S., Shim, H. S., & Cui, W. (2008). GGUM2004 Windows User's Guide.

Examples

1
2
3
4
5
6
# File path to GGUM2004 item parameter output file 
ex1.pars <- system.file("extdata", "ex1_pars.txt", package="ScoreGGUM")
# Specify number of response categories per item
numCats.1 <- c(rep(4,3),3,rep(4,19)) 
# Read GGUM2004 item parameter output file into R
itemPars.1 <- read.GGUM(ex1.pars, 23, numCats.1, model=8)

ScoreGGUM documentation built on May 2, 2019, 5:15 a.m.