performs permutation tests under no-DIF conditions to generate empirical distributions of DIF statistics
permute(obj, alpha = 0.01, nr = 100)
Returns an object (list) of class "lordif.MC" with the following components:
calling expression
prob associated with the LR Chi-square test comparing Model 1 vs. 2
prob associated with the LR Chi-square test comparing Model 1 vs. 3
prob associated with the LR Chi-square test comparing Model 2 vs. 3
Cox & Snell pseudo R-square change from Model 1 to 2
Cox & Snell pseudo R-square change from Model 1 to 3
Cox & Snell pseudo R-square change from Model 2 to 3
Nagelkerke pseudo R-square change from Model 1 to 2
Nagelkerke pseudo R-square change from Model 1 to 3
Nagelkerke pseudo R-square change from Model 2 to 3
McFadden pseudo R-square change from Model 1 to 2
McFadden pseudo R-square change from Model 1 to 3
McFadden pseudo R-square change from Model 2 to 3
proportional beta change from Model 1 to 2
significance level
number of replications
thresholds for the statistics
an object returned from lordif
desired significance level (e.g., .01)
number of replications
Seung W. Choi <choi.phd@gmail.com>
The vector of group designations is randomly shuffled nr times to estimate the sampling distribution of the statistics when the null hypothesis is true. Returns empirical distributions and thresholds for various statistics and effect size measures.
Choi, S. W., Gibbons, L. E., Crane, P. K. (2011). lordif: An R Package for Detecting Differential Item Functioning Using Iterative Hybrid Ordinal Logistic Regression/Item Response Theory and Monte Carlo Simulations. Journal of Statistical Software, 39(8), 1-30. URL http://www.jstatsoft.org/v39/i08/.
montecarlo
, lordif
##load PROMIS Anxiety sample data (n=766)
if (FALSE) data(Anxiety)
##age : 0=younger than 65 or 1=65 or older
##run age-related DIF on all 29 items (takes about a minute)
if (FALSE) age.DIF <- lordif(Anxiety[paste("R",1:29,sep="")],Anxiety$age)
##the following takes several minutes
if (FALSE) age.DIF.MC <- permute(age.DIF,alpha=0.01,nr=100)
Run the code above in your browser using DataLab