R/fidofit_methods.R
pibble_tidy_samples.Rd
Combines them all into a single tibble, see example for formatting and
column headers. Primarily designed to be used by
summary.pibblefit
.
pibble_tidy_samples(m, use_names = FALSE, as_factor = FALSE)
an object of class pibblefit
should dimension indices be replaced by dimension names if provided in data used to fit pibble model.
if use_names should names be returned as factor?
tibble
sim <- pibble_sim()
fit <- pibble(sim$Y, sim$X)
fit_tidy <- pibble_tidy_samples(fit, use_names=TRUE)
head(fit_tidy)
#> Parameter coord sample iter val covariate coord2
#> 1 Eta log(c1/c10) s1 1 0.17005848 <NA> <NA>
#> 2 Eta log(c2/c10) s1 1 0.52214393 <NA> <NA>
#> 3 Eta log(c3/c10) s1 1 0.73076267 <NA> <NA>
#> 4 Eta log(c4/c10) s1 1 7.93123656 <NA> <NA>
#> 5 Eta log(c5/c10) s1 1 -0.08022714 <NA> <NA>
#> 6 Eta log(c6/c10) s1 1 1.62889840 <NA> <NA>