tidy_stanpars: Tidy up a vector of stan names into a data frame.

View source: R/utility.R

tidy_stanparsR Documentation

Tidy up a vector of stan names into a data frame.

Description

Tidy up a vector of stan names into a data frame.

Usage

tidy_stanpars(stannames, labs = NULL, ...)

Arguments

stannames

Character vector of stan names.

labs

Optional. Character vector for what indices meaningfully pertain to. E.g., c("Factor", "Item") for an FxJ matrix.

...

Optional. Named vectors of labels corresponding to indices. E.g., if labs = "Item", and you include Item = colnames(model_matrix), then the indices (numeric) are replaced by the name in the supplied vector. E.g., the numeric i will be replaced by the i-th name.

Value

Data frame containing parameters and the (optionally named) indices.

Author(s)

Stephen R Martin


MIRES documentation built on June 8, 2025, 10:55 a.m.