I have binary shock responses `y_{jt}` for dog `j` on trial `t`, with `j = 1, ..., n_dogs` and `t = 1, ..., n_trials`. The probability of shock depends on the cumulative numbers of previous avoidances and previous shocks through a logistic regression without an intercept.

My model is:
Let `A_{jt}` be the cumulative number of previous avoidances for dog `j` before trial `t`, and let `S_{jt}` be the cumulative number of previous shocks before trial `t`.

Then

`y_{jt} ~ Bernoulli(p_{jt}),`
`logit(p_{jt}) = beta_1 A_{jt} + beta_2 S_{jt}, for j = 1, ..., n_dogs and t = 1, ..., n_trials.`

The priors are

`beta_1 ~ Uniform(-100, 0),`
`beta_2 ~ Uniform(0, 100).`

Here:
`y_{jt}` is the observed shock indicator for dog j on trial t,
`A_{jt}` is the cumulative number of previous avoidances,
`S_{jt}` is the cumulative number of previous shocks,
`beta_1` and `beta_2` are the regression coefficients for previous avoidances and previous shocks,
`n_dogs` is the number of dogs,
`n_trials` is the number of trials per dog.

Parameterization notes:
`logit(p) = log(p / (1 - p))`.
