Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

tidy_stanpars

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

Measurement Invariance Assessment Using Random Effects Models and Shrinkage

v0.1.0
MIT + file LICENSE
Authors
Stephen Martin [aut, cre] (<https://orcid.org/0000-0001-8085-2390>), Philippe Rast [aut] (<https://orcid.org/0000-0003-3630-6629>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.