I have binary outcomes together with observed predictors or latent structure, and I want to fit a Bayesian model for the success probabilities.

My model is:
`c = slab_scale * sqrt(caux),`
`lambda_tilde_k = sqrt(c ^ 2 lambda_k^2 / (c ^ 2 + tau ^ 2 lambda_k^2)), for k = 1, ..., d,`
`beta_k = z_k lambda_tilde_k tau, for k = 1, ..., d,`
`z_k ~ Normal(0, 1), for k = 1, ..., d,`
`lambda_k ~ StudentT(nu_local, 0, 1), for k = 1, ..., d,`
`tau ~ StudentT(nu_global, 0, scale_global * 2),`
`caux ~ InvGamma(0.5 * slab_df, 0.5 * slab_df),`
`beta0 ~ Normal(0, scale_icept),`
`y_i ~ Bernoulli(p_i), for i = 1, ..., n,`
`logit(p_i) = beta0 + x_i^T beta, for i = 1, ..., n.`

Here:
`y_i` is the observed binary outcome for observation i,
`x_i` is the predictor vector for observation i,
`beta0` is the intercept,
`beta` is the regression-coefficient vector,
`z_k` is the auxiliary standard-normal variable used to build coefficient k,
`lambda_k` is the local shrinkage parameter for coefficient k,
`lambda_tilde_k` is the regularized local shrinkage factor for coefficient k,
`tau` is the global shrinkage parameter,
`caux` is the auxiliary slab-variance parameter,
`c` is the slab scale after combining `slab_scale` and `caux`,
`nu_global` is the degrees of freedom for the half-t prior on `tau`,
`nu_local` is the degrees of freedom for the half-t priors on the `lambda_k`,
`scale_global` is the scale for the half-t prior on `tau`,
`scale_icept` is the prior standard deviation for the intercept,
`slab_df` is the slab degrees-of-freedom parameter,
`slab_scale` is the slab scale in the regularized horseshoe prior,
`d` is the number of predictors,
`n` is the number of observations.
