Learn R Programming

report (version 0.5.5)

report_priors: Report priors of Bayesian models

Description

Reports priors of Bayesian models (see list of supported objects in report()).

Usage

report_priors(x, ...)

Value

An object of class report_priors().

Arguments

x

The R object that you want to report (see list of of supported objects above).

...

Arguments passed to or from other methods.

Examples

Run this code
library(report)

# Bayesian models
if (require("rstanarm")) {
  model <- stan_glm(mpg ~ disp, data = mtcars, refresh = 0, iter = 1000)
  r <- report_priors(model)
  r
  summary(r)
}

Run the code above in your browser using DataLab