Return a plot for the parameters estimates based on the HPD interval The returned plot is a caterpillar type of plot

get_parameters_plot(
  bpc_object,
  HPDI = T,
  params = c("lambda"),
  title = "Parameter estimates",
  subtitle = NULL,
  xaxis = "Parameter",
  yaxis = "Value",
  rotate_x_labels = FALSE,
  APA = TRUE,
  keep_par_name = TRUE
)

Arguments

bpc_object

a bpc fitted object

HPDI

use HPD (TRUE) or credible intervals (FALSE) for the plots

params

a vector of string for of the parameters to be plotted

title

the title of the plot

subtitle

optional subtitle for the plot

xaxis

title of the x axis

yaxis

title of the y axis

rotate_x_labels

should the labels be shown horizontally (default, FALSE) or vertically (TRUE)

APA

should the graphic be formatted in APA style (default TRUE)

keep_par_name

keep the parameter name e.g. lambda Graff instead of Graff. Default to T. Only valid for lambda, so we can have better ranks

Value

a ggplot2 caterpillar plot

Examples

# \donttest{
m<-bpc(data = tennis_agresti,
player0 = 'player0',
player1 = 'player1',
result_column = 'y',
model_type = 'bt',
solve_ties = 'none')
#> Running MCMC with 4 parallel chains...
#> 
#> Chain 1 finished in 3.4 seconds.
#> Chain 2 finished in 3.4 seconds.
#> Chain 3 finished in 3.3 seconds.
#> Chain 4 finished in 3.3 seconds.
#> 
#> All 4 chains finished successfully.
#> Mean chain execution time: 3.3 seconds.
#> Total execution time: 3.5 seconds.
p<-get_parameters_plot(m)
p

# }