Guest User

Untitled

a guest
Jul 19th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. df = data.frame("Q1" = sample(1:7, 100, replace = T), "Q2" =
  2. sample(1:5, 100, replace = T))
  3.  
  4. library(mirt)
  5. model = mirt(data = df, model = 1, itemtype = "gpcm")
  6. coef(model, IRTpars = T)
  7. plot(model, type = "trace")
Add Comment
Please, Sign In to add comment