Combine an example backend with an example generator to provide full results that can be used to test other functions in the package.

SBC_example_results(
  example = c("normal_ok", "normal_bad"),
  interface = c("rstan", "cmdstanr"),
  N = 100,
  n_sims = 50
)

Arguments

example
  • name of the example. normal_ok is an example where the generator matches the model (using the normal generator and normal_sd backend), while normal_bad is an example with a mismatch between the generator and backend that manifests in SBC (normal_bad combines the normal generator with normal_var backend).

interface

name of the interface to be used for the backend

N

number of datapoints to simulate from the generator for each simulation

n_sims

number of simulations to perform