Calculates the estimates for an MCMC object.
# S3 method for mcmcr
estimates(x, fun = median, as_df = FALSE, ...)
An object.
A function that given a numeric vector returns a numeric scalar.
A flag indicating whether to return the results as a data frame versus a named list.
Optional arguments to fun.
A named list or data frame.
Other MCMC manipulations:
bind_chains()
,
bind_iterations()
,
collapse_chains()
,
split_chains()
estimates(mcmcr_example)
#> $alpha
#> [1] 3.718025 4.718025
#>
#> $beta
#> [,1] [,2]
#> [1,] 0.9716535 1.971654
#> [2,] 1.9716535 2.971654
#>
#> $sigma
#> [1] 0.7911975
#>