extract-brmsfit-method: 'extract' method for 'brmsfit' objects

extract,brmsfit-methodR Documentation

extract method for brmsfit objects

Description

extract method for brmsfit objects created by the brm function in the brms package.

Usage

## S4 method for signature 'brmsfit'
extract(
  model,
  use.HDI = TRUE,
  level = 0.9,
  include.random = TRUE,
  include.rsquared = TRUE,
  include.nobs = TRUE,
  include.loo.ic = TRUE,
  reloo = FALSE,
  include.waic = TRUE,
  ...
)

Arguments

model

A statistical model object.

use.HDI

Report highest posterior density (HPD) intervals (HDI) using the HPDinterval function in the coda package, with the probability given in the level argument, instead of the default 95 percent posterior quantiles?

level

Significance level (1 - alpha) for HPDs (in combination with the use.HDI argument).

include.random

Include random effects (standard deviations) in the GOF block of the table?

include.rsquared

Report R^2 in the GOF block?

include.nobs

Report the number of observations in the GOF block?

include.loo.ic

Report Leave-One-Out Information Criterion?

reloo

Recompute exact cross-validation for problematic observations for which approximate leave-one-out cross-validation may return incorrect results? This is done using the reloo.brmsfit function and may take some time to compute.

include.waic

Report Widely Applicable Information Criterion (WAIC)?

...

Custom parameters, which are handed over to subroutines, in this case to the summary method for the object.

Author(s)

Hyunjin (Jin) Song, Philip Leifeld


texreg documentation built on Sept. 11, 2024, 6:41 p.m.