posterior_epred_long: Expected Values of the Posterior Predictive Distribution in...

Description Usage Arguments Value Examples

View source: R/helpers.R

Description

Expected Values of the Posterior Predictive Distribution in long format

Usage

1
posterior_epred_long(model, n_samples = NULL)

Arguments

model

brmsfit

n_samples

integer

Value

tibble with columns from brmsfit$data (at least original responses, person and item identifier). Additionally ppe (posterior predictive estimate) and .draw (which MCMC draw comes the answer from).

Examples

1
2
3
4
## Not run: 
posterior_epred_long(fit, n_samples = 500)

## End(Not run)

Famondir/birtms documentation built on Feb. 18, 2022, 2:51 a.m.