I have binary shock responses `y_{jt}` for dog `j` on trial `t`, with `j = 1, ..., n_dogs` and `t = 1, ..., n_trials`. The log-odds of shock depend on the cumulative numbers of previous avoidances and previous shocks.

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 + beta_2 A_{jt} + beta_3 S_{jt}, for j = 1, ..., n_dogs and t = 1, ..., n_trials.`

The prior is

`beta_r ~ Normal(0, 100), for r = 1, 2, 3.`

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` is the intercept,
`beta_2` and `beta_3` are the effects of previous avoidances and shocks on the log-odds of shock,
`n_dogs` is the number of dogs,
`n_trials` is the number of trials per dog.

Parameterization notes:
In `Normal(mu, sigma)`, `sigma` is a standard deviation.
`logit(p) = log(p / (1 - p))`.
