stanBF_turn: Extract theta posterior samples for a turn-like object

Description Usage Arguments Details Value

Description

stanBF_turn objects share the Dirichlet likelihood, with θ as prior parameter.

Extract prior predictive distributions for turn-point posteriors.

Extract posterior predictive distributions for turn-point posteriors.

Usage

1
2
3
4
5
6
7
8
## S3 method for class 'stanBF_turn'
samples(stanBF)

## S3 method for class 'stanBF_turn'
prior_pred(stanBF, var_name = "x", ...)

## S3 method for class 'stanBF_turn'
posterior_pred(stanBF, var_name = "x", ...)

Arguments

stanBF

a stanBF_turn object

var_name

the base name for output variable columns (default: 'x')

...

additional parameters

Details

This function extract posterior samples for θ. Also returns the normalized version of them (ρ).

Value

a tibble containing prior predictions across hypotheses and sources

a tibble containing posterior predictions across hypotheses and sources


lgaborini/rstanBF documentation built on March 10, 2021, 1:12 p.m.