orthus_tidy_samples: Convert orthus samples of Eta Lambda and Sigma to tidy format

View source: R/fidofit_methods.R

orthus_tidy_samplesR Documentation

Convert orthus samples of Eta Lambda and Sigma to tidy format

Description

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

Usage

orthus_tidy_samples(m, use_names = FALSE, as_factor = FALSE)

Arguments

m

an object of class orthusfit

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

sim <- orthus_sim()
fit <- orthus(sim$Y, sim$Z, sim$X)
fit_tidy <- orthus_tidy_samples(fit, use_names=TRUE)
head(fit_tidy)

fido documentation built on June 22, 2024, 9:36 a.m.