Probability of Responses to a Question Item or the Left-Cumulative Probability of Responses
Probability of Responses to a Question Item or the Left-Cumulative Probability of Responses
Calculates the probability of specific responses or the left-cumulative probability of responses to item conditioned on a respondent's ability (θ).
probability(catObj, theta, item)
Arguments
catObj: An object of class Cat
theta: A numeric or an integer indicating the value for θj
item: An integer indicating the index of the question item
Returns
When the model slot of the catObj is "ltm", the function probability returns a numeric vector of length one representing the probability of observing a non-zero response.
When the model slot of the catObj is "tpm", the function probability returns a numeric vector of length one representing the probability of observing a non-zero response.
When the model slot of the catObj is "grm", the function probability returns a numeric vector of length k+1, where k is the number of possible responses. The first element will always be zero and the (k+1)th element will always be one. The middle elements are the cumulative probability of observing response k or lower.
When the model slot of the catObj is "gpcm", the function probability returns a numeric vector of length k, where k is the number of possible responses. Each number represents the probability of observing response k.
Details
For the ltm model, the probability of non-zero response for respondent j on item i is
Pr(yij=1∣θj)=1+exp(ai+biθj)exp(ai+biθj)
where θj is respondent j 's position on the latent scale of interest, ai is item i 's discrimination parameter, and bi is item i 's difficulty parameter.
For the tpm model, the probability of non-zero response for respondent j on item i is
where θj is respondent j 's position on the latent scale of interest, ai is item i 's discrimination parameter, bi is item i 's difficulty parameter, and ci is item i 's guessing parameter.
For the grm model, the probability of a response in category k or lower for respondent j on item i is
where θj is respondent j 's position on the latent scale of interest, αik the k-th element of item i 's difficulty parameter, βi is discrimination parameter vector for item i. Notice the inequality on the left side and the absence of guessing parameters.
For the gpcm model, the probability of a response in category k for respondent j on item i is
where θj is respondent j 's position on the latent scale of interest, αi is the discrimination parameter for item i, βi is the difficulty parameter for item i, and τit is the category t threshold parameter for item i, with k=1,...,Ki response options for item i. For identification purposes τi0=0 and ∑t=11αi[θj−(βi−τit)]=0. Note that when fitting the model, the βi and τit are not distinct, but rather, the difficulty parameters are βit = βi - τit.
Note
This function is to allow users to access the internal functions of the package. During item selection, all calculations are done in compiled C++ code.
Examples
## Loading ltm Cat object## Probability for Cat object of the ltm modeldata(ltm_cat)probability(ltm_cat, theta =1, item =1)## Loading tpm Cat object## Probability for Cat object of the tpm modelprobability(tpm_cat, theta =1, item =1)## Loading grm Cat object## Probability for Cat object of the grm modelprobability(grm_cat, theta =1, item =1)## Loading gpcm Cat object## Probability for Cat object of the gpcm modelprobability(gpcm_cat, theta =-3, item =2)
References
Baker, Frank B. and Seock-Ho Kim. 2004. Item Response Theory: Parameter Estimation Techniques. New York: Marcel Dekker.
Choi, Seung W. and Richard J. Swartz. 2009. ``Comparison of CAT Item Selection Criteria for Polytomous Items." Applied Psychological Measurement 33(6):419-440.
Muraki, Eiji. 1992. ``A generalized partial credit model: Application of an EM algorithm." ETS Research Report Series 1992(1):1-30.
van der Linden, Wim J. 1998. ``Bayesian Item Selection Criteria for Adaptive Testing." Psychometrika 63(2):201-216.
See Also
Cat-class
Author(s)
Haley Acevedo, Ryden Butler, Josh W. Cutler, Matt Malis, Jacob M. Montgomery, Tom Wilkinson, Erin Rossiter, Min Hee Seo, Alex Weil