Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- df = data.frame("Q1" = sample(1:7, 100, replace = T), "Q2" =
- sample(1:5, 100, replace = T))
- library(mirt)
- model = mirt(data = df, model = 1, itemtype = "gpcm")
- coef(model, IRTpars = T)
- plot(model, type = "trace")
Add Comment
Please, Sign In to add comment