Learn R Programming

cacIRT (version 1.3)

class.Lee: Computes classification accuracy and consistency with Lee's approach.

Description

Computes classification accuracy and consistency with Lee's approach. The probability of each possible total score conditional on ability is found with recursive.raw. Those probabilities are grouped according to the cut scores and used to estimate the indices. See references or code for details.

Usage

class.Lee(cutscore, ip, ability = NULL, rdm = NULL, quadrature = NULL, D = 1.7)
Lee.D(cutscore, quadrature, ip, D = 1.7)
Lee.P(cutscore, theta, ip, D = 1.7)
Lee.poly.P(cutscore, theta, Pij)

Arguments

cutscore
A scalar or vector of cut scores on the True Score scale. If you have cut scores on the theta scale, you can transform them with irf (See example for irf). Should not include 0 or the max total score, the function will include th
ip
Matrix of item parameters, columns are discrimination, difficultly, guessing. For 1PL and 2PL, still give a Jx3 matrix, with ip[,1] = 1 and ip[,3] = 0 for example.
ability, theta
Ability estimates for each subject.
rdm
The response data matrix with rows as subjects and columns as items
quadrature
A list containing 1) The quadrature points and 2) Their corresponding weights
D
Scaling constant for IRT parameters, defaults to 1.7, alternatively often set to 1.
Pij
An array with N rows, nk (maximum number of options) columns, and I slices giving the probabilites Prob(X_i = x_i | theta_p) Each element is the probability that person n produces that column response for the item i. For binary response the dimensions wou

Value

  • MarginalA matrix with two columns of marginal accuracy and consistency per cut score (and simultaneous if multiple cutscores are given)
  • ConditionalA matrix of conditional accuracy and conditional consistency returned in the order of subjects if ability or rdm is given

Details

Must give only one ability, rdm, or quadrature. If ability is given, those scores are used for the P method. If rdm is given, ability is estimated with MLE (perfect response patterns given a -4 or 4) and used for the P method. If quadrature, the D method is used. class.Lee calls Lee.D or Lee.P. For Lee.poly.P, user provides the array Pij, the cutscores, and the ability. Pij can be created from most IRT models or mixed tests.

References

Lee, W. (2010) Classification consistency and accuracy for complex assessments using item response theory. Journal of Educational Measurement, 47, 1--17.

Examples

Run this code
##from rdm, item parameters denote 4 item 1PL test, cut score at x=2
##only print marginal indices

params<-matrix(c(1,1,1,1,-2,1,0,1,0,0,0,0),4,3)
rdm<-sim(params, rnorm(100))

class.Lee(2, params, rdm = rdm)$Marginal

##or from 40 quadrature points and weights, 2 cut scores

quad <- normal.qu(40)

class.Lee(c(2,3), params, quadrature = quad, D = 1)$Marginal

#example of Lee.poly.P with same binary responses
theta.hat <- MLE(rdm, params)
Pij <- array(NA,dim = c(100,2,4))

Pi1 <- irf(params, theta.hat)$f
Pij[,2,] <- Pi1
Pij[,1,] <- 1-Pi1

Lee.poly.P(c(2,3), theta.hat, Pij)$Marginal

Run the code above in your browser using DataLab