get_sample_posterior {bpcs}R Documentation

Get the posterior samples for a parameter of the model.

Description

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

Usage

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


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))


[Package bpcs version 1.0.0 Index]