Description Usage Arguments Value Examples
Return a data frame with the posterior samples for the parameters of the model
1 | get_sample_posterior(bpc_object, par = "lambda", n = 1000)
|
bpc_object |
a bpc object |
par |
name of the parameters to predict |
n |
how many times are we sampling? Default 1000 |
Return a data frame with the posterior samples for the parameters. One column for each parameter one row for each sample
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))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.