Convert orthus samples of Eta Lambda and Sigma to tidy format
Source:R/fidofit_methods.R
orthus_tidy_samples.Rd
Combines them all into a single tibble, see example for formatting and
column headers. Primarily designed to be used by
summary.orthusfit
.
Examples
sim <- orthus_sim()
fit <- orthus(sim$Y, sim$Z, sim$X)
fit_tidy <- orthus_tidy_samples(fit, use_names=TRUE)
head(fit_tidy)
#> Parameter coord sample iter val covariate coord2
#> 1 Eta log(c1/c10) s1 1 1.7948963 <NA> <NA>
#> 2 Eta log(c2/c10) s1 1 1.7951188 <NA> <NA>
#> 3 Eta log(c3/c10) s1 1 -0.5377769 <NA> <NA>
#> 4 Eta log(c4/c10) s1 1 -1.0678274 <NA> <NA>
#> 5 Eta log(c5/c10) s1 1 0.2618703 <NA> <NA>
#> 6 Eta log(c6/c10) s1 1 -2.0371908 <NA> <NA>