pibble_tidy_samples: Convert pibble samples of Eta Lambda and Sigma to tidy format

Description Usage Arguments Value Examples

View source: R/strayfit_methods.R

Description

Combines them all into a single tibble, see example for formatting and column headers. Primarily designed to be used by summary.pibblefit.

Usage

1
pibble_tidy_samples(m, use_names = FALSE, as_factor = FALSE)

Arguments

m

an object of class pibblefit

use_names

should dimension indices be replaced by dimension names if provided in data used to fit pibble model.

as_factor

if use_names should names be returned as factor?

Value

tibble

Examples

1
2
3
4
sim <- pibble_sim()
fit <- pibble(sim$Y, sim$X)
fit_tidy <- pibble_tidy_samples(fit, use_names=TRUE)
head(fit_tidy)

jsilve24/mongrel documentation built on Jan. 27, 2022, 9:54 p.m.