Turn an object into a tidy tibble
Usage
# S3 method for class 'nlists'
tidy(x, simplify = TRUE, directional_information = FALSE, ...)Arguments
- x
An object.
- simplify
A flag specifying whether to drop the sd and zscore columns.
simplify = FALSEis deprecated.- directional_information
A flag specifying whether the svalue column should be calculated using
extras::directional_information()instead ofextras::svalue(). The default value will change fromFALSEtoTRUEin a future release; set the argument explicitly to avoid the deprecation warning.- ...
Unused.
Value
A tibble::tibble() with information about model components.
Methods
See the following help topics for more details about individual methods:nlist
tidy.mcmc.list:mcmc.listtidy.mcmc:mcmctidy.nlists:nlists
Examples
tidy(nlists(
nlist(x = 1, y = 4:6),
nlist(x = 3, y = 7:9)
), simplify = TRUE, directional_information = FALSE)
#> # A tibble: 4 × 5
#> term estimate lower upper svalue
#> <term> <dbl> <dbl> <dbl> <dbl>
#> 1 x 2 1.05 2.95 1.58
#> 2 y[1] 5.5 4.07 6.93 1.58
#> 3 y[2] 6.5 5.07 7.93 1.58
#> 4 y[3] 7.5 6.07 8.93 1.58
tidy(nlists(
nlist(x = 1, y = 4:6),
nlist(x = 3, y = 7:9)
), simplify = TRUE, directional_information = TRUE)
#> # A tibble: 4 × 5
#> term estimate lower upper svalue
#> <term> <dbl> <dbl> <dbl> <dbl>
#> 1 x 2 1.05 2.95 1
#> 2 y[1] 5.5 4.07 6.93 1
#> 3 y[2] 6.5 5.07 7.93 1
#> 4 y[3] 7.5 6.07 8.93 1
