I have binary avoidance responses `y_{jt}` for dog `j` on trial `t`, with `j = 1, ..., J` and `t = 1, ..., T`. The probability of avoidance on a given trial depends on the cumulative numbers of previous shocks and previous avoidances for that dog.

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

Then

`y_{jt} ~ Bernoulli(p_{jt}),`
`p_{jt} = a^{S_{jt}} b^{A_{jt}}, for j = 1, ..., J and t = 1, ..., T.`

The parameters satisfy `a, b in (0, 1)` with implicit uniform priors on that interval.

Here:
`y_{jt}` is the observed avoidance indicator for dog j on trial t,
`S_{jt}` is the cumulative number of previous shocks for dog j before trial t,
`A_{jt}` is the cumulative number of previous avoidances for dog j before trial t,
`a` controls how repeated shocks modify future avoidance probability,
`b` controls how repeated avoidances modify future avoidance probability,
`J` is the number of dogs,
`T` is the number of trials per dog.
