Returns the resolved priors used to fit the model, either the
user-supplied fb_prior() object, the auto-default half-normal
on the standard-deviation scale, or the
legacy scalar bridge (prior_fixed_sd + prior_vc_sd). The
return value is an S3 object with a print() method. The
underlying fb_prior (when applicable) is exposed under
$fb_prior for programmatic access.
Usage
prior_summary(object, ...)
# S3 method for class 'flexybayes_inla'
prior_summary(object, ...)
# S3 method for class 'flexybayes_brms'
prior_summary(object, ...)
# Default S3 method
prior_summary(object, ...)Value
A prior_summary_flexybayes object, a list carrying the
components below.
kindOne of
"fb_prior","legacy_scalar","no_prior_recorded".backendThe backend the fit ran on:
"inla"or"brms".fb_priorThe
fb_priorobject (whenkind == "fb_prior").default_origin"auto"when the prior was constructed by the half-normal auto-default."user"when supplied via thepriorargument;NAfor legacy / no-prior cases.default_scale,default_basisAttributes carried by the auto-default prior naming the half-normal scale and its basis (response-scale
sd(y), logit-scale constant, log-scale constant).NULLwhen the prior was user-supplied.fixed_sd,vc_sdLegacy scalar values (when
kind == "legacy_scalar").scalars_suppliedNamed logical: whether the caller supplied
prior_fixed_sdandprior_vc_sd. An argument left unsupplied leaves the engine's own default in force, whichfixed_sd_engine_defaultnames.legacy_vc_appliedNamed character: the density the legacy scalar bridge put on each variance component it reached, empty when
prior_vc_sdwas not supplied.not_appliedNamed character: a prior this package declared that the engine has no parameter for, a residual prior on a family whose dispersion is a function of the mean.
declaration_onlyReserved. Always
FALSEfor every current backend.inputsData frame: every prior specification the fit was given, stated or chosen by the package, with its source and the number of engine slots that used it.
slotsData frame: every engine slot, with the prior the package sent, the input it came from, the prior the engine reports after fitting and whether the two agree. A slot carrying the engine's own prior is listed with that source.
not_consumedNamed character: each input no engine slot used, with the reason code.