I am trying to create a 2PL IRT model for some ordinal response scale data and have been trying to implement something similar to what @paul.buerkner suggested in this thread.
The data consist of evaluations completed by individuals at different events and the evaluation has been designed to assess 5 Factors/constructs. The Factors/constructs are comprised of 2-5 of 14 total questions in the evaluation.
I have tried to specify the model with nonlinear syntax as follows:
fmla <- bf(
Response ~ disc * eta,
nl = TRUE,
disc ~ (1|i|Question),
eta ~ (1|i|Question) + (0 + Factor|p|Event_ID:ID),
family = cumulative())
But, when I run get_prior
I receive an error
Error: The following variables are missing in 'data':
'disc'
disc
isn’t in the data, it should be an estimated parameter, so I’m not sure how to correct my syntax.
If I change the case to Disc
I can get possible priors, but I also get two parameters one for disc
and one for Disc
- along with really low ESS on the Disc
parameter.
Can anyone suggest where I’m going wrong in the specification?