set_user_prior(prior, ..., model = c("beta_binom", "gamma_pois", "anova1"), anova_d = 2)
| prior | An R function returning the log of the prior density for of (perhaps a subset of) the hyperparameter vector \(\phi\). |
|---|---|
| ... | Further arguments giving the names and values of any
parameters involved in the function |
| model | A character string. Abbreviated name of the model:
"beta_binom" for beta-binomial and "gamma_pois" for gamma-Poisson
(see |
| anova_d | An integer scalar. Only relevant if |
A list of class "bang_prior". Will contain the component
prior, the user-supplied function to evaluate the log of the prior,
and any arguments supplied in ....
For details of the hyperparameters in \(\phi\) see the
Details section of hef for the models
beta_binom and gamma_pois and of hanova1
for the model anova1.
hef for hierarchical exponential family models.
hanova1 for hierarchical one-way analysis of
variance (ANOVA).