Learn R Programming

lordif (version 0.1-9)

lordif: performs LOgistic Regression Differential Item Functioning using IRT

Description

performs iterative hybrid ordinal logistic regression/IRT DIF

Usage

lordif(resp.data, group, selection = NULL,
  criterion = c("Chisqr", "R2", "Beta"),
  pseudo.R2 = c("McFadden", "Nagelkerke", "CoxSnell"), alpha = 0.01,
  beta.change = 0.1, R2.change = 0.02, maxIter = 10, minCell = 5,
  minTheta = -4, maxTheta = 4, inc = 0.1, NQ=41)

Arguments

resp.data
data frame or matrix containing item responses
group
a vector of group designations
selection
vector specifying a subset of items to be analyzed or NULL for all items
criterion
criterion for flagging (i.e., "Chisqr", "R2", or "Beta")
pseudo.R2
pseudo R-squared measure (i.e., "McFadden", "Nagelkerke", or "CoxSnell")
alpha
significance level for Chi-squared criterion
beta.change
proportionate change for Beta criterion
R2.change
R-squared change for pseudo R-squared criterion
maxIter
maximum number of iterations for purification
minCell
minimum cell frequency to avoid collapsing
minTheta
minimum for theta grid
maxTheta
maximum for theta grid
inc
increment for theta grid
NQ
number of quadrature points for IRT parameter estimation (maximum of 61)

Value

  • Returns a list of class "lordif" with the following components:
  • callcalling expression
  • optionsoptions used for the run
  • selectionall or a subset of items analyzed
  • statsmatrix containing output statistics
  • flaglogical vector of final flags indicating whether each item is displaying DIF or not
  • recodeddata frame containing recoded item responses
  • groupvector of group designation values
  • ngscalar for the number of groups
  • ncatvector of the number of response categories after collapsing/recoding
  • calibvector of theta estimates based on the overall (non-group-specific) item parameters
  • calib.sparsevector of theta estimates based on the group-specific item parameters (for DIF items)
  • iterationscalar for the number of iterations
  • ipardata frame of the overall (non-group-specific) item parameter estimates
  • ipar.sparsedata frame of the group-specific item parameter estimates
  • stats.rawmatrix containing output statistics (the same components as stats above but based on raw scores)
  • meanrawvector containing mean raw scores
  • flag.rawlogical vector of DIF final flags based on raw scores

Details

Performs a ordinal (common odds-ratio) logistic regression DIF analysis using IRT theta estimates as the conditioning variable. The graded response (GR) model is used for IRT trait estimation. Flagged items are treated as separate items and group-specific item parameters are obtained. The procedure runs iteratively until the same set of items is flagged over two iterations.

References

Crane, P. K., Gibbons, L. E., Jolley, L., and van Belle, G. (2006). Differential item functioning analysis with ordinal logistic regression techniques: DIF detect and difwithpar. Medical Care, 44(11 Suppl 3), S115-S123.

See Also

rundif

Examples

Run this code
data(Anxiety)
  resp.data <- Anxiety[paste("R",1:29,sep="")] 
  age <- Anxiety$age 
  age.DIF <- lordif(resp.data,age)
  #print(age.DIF)

Run the code above in your browser using DataLab