Skip to contents

Convenience function to collect quantiles and summaries of the pointwise elpd estimates instead of just the main estimates. The returned summaries are all sample size independent.

Usage

elpd_pointwise_summaries(fit, quantiles, newdata = NULL)

Arguments

fit

A brmsfit object.

quantiles

A vector of quantiles of interest.

newdata

If supplied, returns the summaries for elpd_test() otherwise, returns brms::elpd() summaries by default.

Value

A named list of summaries.

Examples

fit <- brms::brm(y ~ 1, data = list(rnorm(1000)))
#> Error in validate_data(data, bterms = bterms, data2 = data2, knots = knots,     drop_unused_levels = drop_unused_levels, data_name = substitute_name(data)): The following variables can neither be found in 'data' nor in 'data2':
#> 'y'
elpd_pointwise_summaries(fit, seq(0.1, 0.9, length.out = 9))
#> Error: object 'fit' not found
elpd_pointwise_summaries(fit, seq(0.1, 0.9, length.out = 9), rnorm(1000))
#> Error: object 'fit' not found