Learn R Programming

qbrms (version 1.0.1)

prior_to_posterior_workflow: Complete Prior-to-Posterior Workflow

Description

Fit a model with priors sampled, then produce a comparison density plot that overlays posterior, prior, and observed distributions where available.

Usage

prior_to_posterior_workflow(
  formula,
  data,
  family = gaussian(),
  prior = NULL,
  verbose = TRUE,
  ...
)

Value

A list of class qbrms_workflow_result with elements fit and plot.

Arguments

formula

Model formula.

data

Data frame.

family

Model family (default gaussian()).

prior

Prior specification (default NULL).

verbose

Logical; print progress messages.

...

Additional arguments forwarded to qbrms().