default_prior | R Documentation |
default_prior
is a generic function that can be used to
get default priors for Bayesian models. Its original use is
within the brms package, but new methods for use
with objects from other packages can be registered to the same generic.
default_prior(object, ...)
get_prior(formula, ...)
object |
An object whose class will determine which method will be used. A symbolic description of the model to be fitted. |
... |
Further arguments passed to the specific method. |
formula |
Synonym of |
See default_prior.default
for the default method applied for
brms models. You can view the available methods by typing
methods(default_prior)
.
Usually, a brmsprior
object. See
default_prior.default
for more details.
set_prior
, default_prior.default
## get all parameters and parameters classes to define priors on
(prior <- default_prior(count ~ zAge + zBase * Trt + (1|patient) + (1|obs),
data = epilepsy, family = poisson()))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.