Returns posterior median and credible interval estimates of the regression
coefficients \(\beta_{mjp}\), or of a contrast
\(\beta_{mjp} - \beta_{mjq}\) between two levels of a categorical
covariate. The contrast form is what is plotted in Figs 7 and 10 of the
paper.
Usage
posterior_beta(fit, contrast = NULL, level = 0.95)
Arguments
- fit
A fitted "spbgfm" object, fitted with a covariate.
- contrast
Optional length-2 integer vector c(p, q); the
difference \(\beta_{mjp} - \beta_{mjq}\) is summarised. When
NULL (default) each coefficient is summarised on its own.
- level
Credible level. Default 0.95.
Value
A data frame with one row per feature (and per coefficient when
contrast is NULL), with columns domain,
feature, coefficient, median, lower,
upper and significant (whether the interval excludes zero).