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

Description Usage Arguments Value Author(s)

View source: R/utility.R

Description

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

Usage

1
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 Feb. 22, 2021, 5:10 p.m.