I have a binary response matrix `y_{ij}` for `I` items answered by `J` persons, and I want to fit a 2-parameter logistic IRT model with hierarchical priors on ability, discrimination, and difficulty.

My model is:
For item `i = 1, ..., I` and person `j = 1, ..., J`,

`y_{ij} ~ Bernoulli(p_{ij}),`
`logit(p_{ij}) = a_i (theta_j - b_i).`

The priors are

`theta_j ~ Normal(0, sigma_theta), for j = 1, ..., J,`
`sigma_theta ~ half-Cauchy(0, 2),`
`a_i ~ LogNormal(0, sigma_a), for i = 1, ..., I,`
`sigma_a ~ half-Cauchy(0, 2),`
`b_i ~ Normal(mu_b, sigma_b), for i = 1, ..., I,`
`mu_b ~ Normal(0, 5),`
`sigma_b ~ half-Cauchy(0, 2).`

Here:
`y_{ij}` is the observed binary correctness indicator for person j on item i,
`theta_j` is the latent ability of person j,
`a_i` is the item discrimination parameter,
`b_i` is the item difficulty parameter,
`sigma_theta` is the population standard deviation of abilities,
`sigma_a` is the population standard deviation on the log scale for discriminations,
`mu_b` and `sigma_b` are the population mean and standard deviation of item difficulties,
`I` is the number of items,
`J` is the number of persons.

Parameterization notes:
In `LogNormal(mu, sigma)`, `mu` and `sigma` are the mean and standard deviation on the log scale.
In `Cauchy(mu, sigma)`, `sigma` is a scale parameter.
In `Normal(mu, sigma)`, `sigma` is a standard deviation.
`logit(p) = log(p / (1 - p))`.
