get_sample_posterior: Get the posterior samples for a parameter of the model.

Description Usage Arguments Value Examples

View source: R/bpc_exports.R

Description

Return a data frame with the posterior samples for the parameters of the model

Usage

1
get_sample_posterior(bpc_object, par = "lambda", n = 1000)

Arguments

bpc_object

a bpc object

par

name of the parameters to predict

n

how many times are we sampling? Default 1000

Value

Return a data frame with the posterior samples for the parameters. One column for each parameter one row for each sample

Examples

1
2
3
4
5
6
7
8
m<-bpc(data = tennis_agresti,
player0 = 'player0',
player1 = 'player1',
result_column = 'y',
model_type = 'bt',
solve_ties = 'none')
s <- get_sample_posterior(m, par='lambda', n=100)
print(head(s))

bpcs documentation built on Dec. 15, 2020, 5:23 p.m.