Learn R Programming

BayesTools (version 0.3.0)

JAGS_formula_design: Extract Fitted JAGS Formula Design Metadata

Description

Returns the fitted formula design metadata stored by JAGS_fit(). The design contains the processed formula, fitted model frame, exact model matrix used for JAGS data construction, JAGS-safe coefficient names, contrast and factor-level metadata, rank diagnostics, prior metadata, and formula-scale information.

Usage

JAGS_formula_design(fit, parameter = NULL)

Value

A named list of formula designs, or one formula design when parameter is supplied. Returns NULL when no formula design metadata is stored on fit.

Arguments

fit

a fitted object returned by JAGS_fit().

parameter

optional formula parameter name. If NULL, all stored formula designs are returned.

See Also

JAGS_fit() JAGS_formula()