Description Usage Format References Examples
Arithmetic reasoning items from the Armed Servces Vocational Aptitude Battery
1 |
A data frame with 128 observations on the following 13 variables.
IDa numeric vector indicating unique pattern identifier
Respitem response (0 = incorrect; 1 = correct)
inta numeric vector of ones; used in MIXOR stand-alone program to represent the intercept
Item1Arithmetic reasoning item 1 (0 = no; 1 = yes)
Item2Arithmetic reasoning item 2 (0 = no; 1 = yes)
Item3Arithmetic reasoning item 3 (0 = no; 1 = yes)
Item4Arithmetic reasoning item 4 (0 = no; 1 = yes)
SexFan indicator variable representing gender (0 = female; 1 = male)
SexItem1Gender by Item1 interaction
SexItem2Gender by Item2 interaction
SexItem3Gender by Item3 interaction
SexItem4Gender by Item4 interaction
freqfrequency weight of pattern
Mislevy R.J. (1985) Estimation of latent group effects Journal of the American Statistical Association 80, 993-997.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | library("mixor")
data("irt.data")
## Sort data by ID
irt.data<-irt.data[order(irt.data$ID),]
# 2 parameter logistic IRT model
Fitted.irt<-mixor(Resp~Item1+Item2+Item3+Item4-1, data=irt.data, id=ID,
weights=freq, which.random.slope=1:4, link="logit", nAGQ=10,
random.effect.mean=FALSE, UNID=1, vcov=FALSE)
summary(Fitted.irt)
# 2 parameter logistic IRT model with Sex interations on item parameters
Fitted.irt2<-mixor(Resp~Item1+Item2+Item3+Item4+SexItem1+SexItem2+SexItem3+SexItem4-1,
data=irt.data, id=ID, weights=freq, which.random.slope=1:8, link="logit",
nAGQ=10, random.effect.mean=FALSE, UNID=1, vcov=FALSE)
summary(Fitted.irt2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.