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

recover_levels

Recover the levels of varying effects in mcmc.list


Description

Jags uses 1, 2, 3, ..., etc. for indexing of varying effects. This function adds back the original levels, whether numeric or string

Usage

recover_levels(samples, data, mcmc_col, data_col)

Arguments

samples

An mcmc.list with varying columns starting in mcmc_col.

data

A tibble or data.frame with the cols in data_col.

mcmc_col

A vector of strings.

data_col

A vector of strings. Has to be same length as mcmc_col.'


mcp

Regression with Multiple Change Points

v0.3.0
GPL-2
Authors
Jonas Kristoffer Lindeløv [aut, cre] (<https://orcid.org/0000-0003-4565-0595>)
Initial release
2020-07-27

We don't support your browser anymore

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