Hello Phil
I'm having difficulties using the Target = .. argument in the mirt function. I already tried a couple of things but get the same error report every time:
Error in validObject(.Object) :
invalid class “SingleGroupClass” object: invalid object for slot "Target" in class "SingleGroupClass": got class "matrix", should be or extend class "numeric"
Could you please take a look at my syntax and let me know where I've made an error? Thanks!
data <- expand.table(LSAT7)
a <- matrix(c(1,0,
1,0,
1,0,
0,1,
0,1), ncol=2, byrow=FALSE)
(mod1 <- mirt(data, 2, Target=a, rotate="targetQ"))