Skip to contents

This function plots the distibutions of the average voter behavior (the $mu_j$'s in the model). Make sure that when using the get_mcmc_samples() function, the parameter for the average voter behavior (default nu) is sampled from the JAGS model.

Usage

assessor_behavior_distribution(
  get_mcmc_samples_result,
  n_assessors,
  name_mean = "nu",
  names_assessors = "voter",
  title = NULL,
  xlim_min = -1,
  xlim_max = 1,
  scale = 1.75
)

Arguments

get_mcmc_samples_result

the mcmc samples

n_assessors

number of voters in the panel / call

name_mean

the name of the parameter estimating the average voter behavior (default = "nu").

names_assessors

names of the voters to be written on the y-axis ticks (default = "voter").

title

title of the plot (default = NULL, no title).

xlim_min

minimum of the x-axis (default = -1).

xlim_max

maximum of the x-axis (default = 1).

scale

for the `geom_density_ridges_gradient()` (default = 1.75).

Value

the result is a plot of the posterior distributions of the average voter behaviors.