#############################################################################
# EXAMPLE 1: Dataset in Schuster and Smith (2006)
#############################################################################
data(data.immer08)
dat <- data.immer08
# select ratings and frequency weights
y <- dat[,1:2]
w <- dat[,3]
#*** Model 1: Uniform distribution phi parameters
mod1 <- immer::lc2_agreement( y=y, w=w, type="unif")
summary(mod1)
#*** Model 2: Equal phi and tau parameters
mod2 <- immer::lc2_agreement( y=y, w=w, type="equal")
summary(mod2)
if (FALSE) {
#*** Model 3: Homogeneous rater model
mod3 <- immer::lc2_agreement( y=y, w=w, type="homo")
summary(mod3)
#*** Model 4: Heterogeneous rater model
mod4 <- immer::lc2_agreement( y=y, w=w, type="hete")
summary(mod4)
#--- some model comparisons
anova(mod3,mod4)
IRT.compareModels(mod1,mod2,mod3,mod4)
}
Run the code above in your browser using DataLab