recover_levels | R Documentation |
Jags uses 1, 2, 3, ..., etc. for indexing of varying effects. This function adds back the original levels, whether numeric or string
recover_levels(samples, data, mcmc_col, data_col)
samples |
An mcmc.list with varying columns starting in |
data |
A tibble or data.frame with the cols in |
mcmc_col |
A vector of strings. |
data_col |
A vector of strings. Has to be same length as |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.