tidy_pi_traces: a helper function to tidy up the pi-traces that come out of...

View source: R/eca-internal-funcs.R

tidy_pi_tracesR Documentation

a helper function to tidy up the pi-traces that come out of the mcmc functions

Description

This makes a tidy data frame of stuff, and also changes things back to factors, if the levels are provided.

Usage

tidy_pi_traces(input, pname, car_tib, interval)

Arguments

input

The output to tidy (i.e.. out$trace$pi)

pname

the name that you want the parameter to be called in the output

car_tib

a tibble with repunit and collection in the order they appear in the output

interval

the thinning interval that was used


benmoran11/rubias documentation built on Feb. 1, 2024, 10:52 p.m.