Usage
score.GGUM(itemPars, respData, numCats, recode=FALSE, scoreMissing=TRUE, removePersons=NULL, respCutoff=NULL, numQuads=30, plotTheta=TRUE, outFile=NULL)
Arguments
itemPars
An Ix(C+3) numeric matrix, where I denotes the number of items and C denotes the number of response categories. The function read.GGUM can be used to read item parameter estimates from a GGUM2004 item parameter output file into the appropriate format (please refer to the section on the read.GGUM function). If a GGUM2004 output file is not available, the item parameter estimates matrix may be manually structured by placing item numbers in the first column and placing item parameter estimates in columns 2 to C+3. Item parameter estimates must be specified in the following order: $\delta$, $\alpha$, ${\tau}_0$, ${\tau}_1$, ..., and ${\tau}_k$.
respData
A Jx(I+1) numeric matrix, where J denotes the number of persons and I denotes the number of items. The first column (i.e., field in FORTRAN terminology) must contain subject numbers and columns 2 to I+1 must contain item responses.
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 if the number of response categories varies across items (e.g., c(4,3,3,...,4)). The maximum number of response categories for an item is 10.
recode
A logical vector of length one. Default value is FALSE. Use TRUE to subtract one from all responses in response data matrix. This option should be used if responses are coded from 1 to C. (The responses must be coded from 0 to C-1.)
scoreMissing
A logical vector of length one. Default value is TRUE, which scores persons with missing responses under the assumption that responses are missing at random. Missing responses must be coded in the response matrix using the symbol NA. Use FALSE to not score persons with missing responses. (If FALSE is used, persons with missing responses will receive NA values in place of scores.)
removePersons
A numeric vector of length P, where P denotes the number of persons to be removed from the response data matrix. Each numeric value should correspond with the subject number of a person to be removed (as opposed to the row number of the person, although it is possible that the subject number and the row number are the same). For example, to remove subjects 11 and 22, use c(11,22).
respCutoff
A numeric vector indicating the response cutoff for each item. A response cutoff is the minimal level of agreement that a person must meet or exceed for at least one item in the analysis. If the cutoff is not met for at least one item, the person will be discarded from the analysis. The numeric vector may either be of length one if the response cutoffs are constant across items or of a length equal to the number of items if response cutoffs vary across items. Response cutoffs are specified using a scale from 0 to $\emph{C}_i$, where 0 is the strongest level of disagreement and $\emph{C}_i$ is the strongest level of agreement.
numQuads
A numeric vector of length one indicating the number of quadrature points to use for the prior distribution. The default value is 30. The minimum and maximum quadrature point values are fixed at -4 and +4 respectively. The remaining qaudrature points are equally spaced between the minimum and maximum values and correspond with densities of the standard normal distribution. The number of quadrature points may be increased to improve the measurement precision of the scores, although this will also increase total runtime.
plotTheta
A logical vector of length one. Default value is TRUE, which plots the distribution of EAP estimates. Use FALSE to supress the plot.
outFile
A character vector of length one indicating the name of the output file in which the EAP estimates and associated posterior standard deviations will be saved (e.g.,"EAP_est.txt"). Subject numbers, EAP estimates, and associated posterior standard deviations are saved in a space-delimited text file in the working directory. A file name must be specified for the estimates to be saved.