Skip to contents

plot_response_probability() plots the distribution over the response probability parameter in the specified model.

Usage

plot_response_probability(
  model,
  parameter_sample = NULL,
  seed = 42L,
  nsim = 500L,
  warmup = 250,
  nuts_control = list(),
  ...
)

Arguments

model

an object of class srpmodel containing prior information

parameter_sample

a stanfit object with samples from the respective model.

seed

integer, fixed random seed; NULL for no fixed seed

nsim

integer, number of samples to draw

warmup

integer, number of warm-up samples for the MCMC sampler before retaining samples; see warmup parameter in rstan::stan().

nuts_control

list, parameters for NUTS algorithm see control argument inrstan::stan()

...

further arguments passed to method implementations

Value

a ggplot2::ggplot object

Examples

mdl <- create_srpmodel(A = define_srp_prior())
plot_response_probability(mdl)