> On Nov 5, 2014, at 2:22 AM,
t.wol...@ibe.edu.pl wrote:
>
> Thanks!
>
> I decided to use the model that was quoted in the discussion:
>
> data {
> int<lower=1> N;
> int<lower=1> K;
> int<lower=0, upper=1> Y[N, K];
> }
> parameters {
> real theta[N];
> real<lower=0> alpha[K];
> real beta[K];
> }
> model {
> beta ~ normal(0, 10);
> alpha ~ lognormal(0, 1);
> theta ~ normal(0, 1);
>
> for (i in 1:N)
> for (j in 1:K)
> Y[i, j] ~ bernoulli_logit(alpha[j] * (theta[i] - beta[j]));
> }
>
> it maches the one by Curtis.
>
> However I must comment, Bob, that there actually are questions that are harder for good students. I have in mind few examples, that however would be hard to translate, of questions about complicated stuff, where you can choose between complicated answer and a simple answer, so that good students choose the complicated answer that seems correct while the simple one, that is choosen by worse students, is in fact the correct one. Those are very rare but happend in practice. So while in general discrimination > 1 is a good idea, but you have to remember that it will not always work with the real data. Maybe it woundn't be such a bad idea to have a prior that enables a very, very small chance of having a negative discrimination..?
I can imagine non-linear effects, too, where poor to medium students
and really good students get the question right, but good students get it
wrong. We mainly work with well designed and well tested tests that
don't have this problem, but it can definitely come up.
You can code whatever kind of prior you want, but it should ideally
be continuous and differentiable at 0. It could even be a mixture. If
the negative effect's small, the prior may dominate, though, and force
an answer near 0.
If you just let the sign float (discimination unconstrained), you get
two posterior modes of the same likelihood contour with their signs
flipped. What you'll see it different chains exploring different ones
and messing up your final results. You can try pinning down some of the
questions if you know ones that aren't pathological (the approach often
taken for ideal point models where the sign isn't known, but you can
pin down one issue or one judge or something on the scale somewhere).
- Bob