response.pattern and data.frame

20 views
Skip to first unread message

Dr. Hans Hansen

unread,
Jun 6, 2014, 10:24:05 AM6/6/14
to mirt-p...@googlegroups.com
dear phil

when i pass a data.frame to the response.pattern option of fscores, the result is too long and i guess, there is some duplication going on. i feel a data.frame should yield the same results as a matrix?

best wishes, felix


mod <- mirt(Science, 1)
fscores(mod, response.pattern=data.frame(matrix(c(1,2,1,3,1,2,3,1),2,4)), full.scores=TRUE)
fscores(mod, response.pattern=matrix(c(1,2,1,3,1,2,3,1),2,4), full.scores=TRUE)

Phil Chalmers

unread,
Jun 6, 2014, 10:38:27 AM6/6/14
to Dr. Hans Hansen, mirt-package
You're right, there should also be support for inputting data.frame objects since generally that's how analysts store their data. It's been patched. Thanks for the report!

Phil


--
You received this message because you are subscribed to the Google Groups "mirt-package" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mirt-package...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages