SBC_example_backend: Construct a backend to be used in the examples.

View source: R/example.R

SBC_example_backendR Documentation

Construct a backend to be used in the examples.

Description

Note that this will involve compiling a Stan model and may take a while.

Usage

SBC_example_backend(
  example = c("normal_sd", "normal_bad"),
  interface = c("rstan", "cmdstanr", "rjags")
)

Arguments

example

name of the example model. normal_sd is a simple model fitting a normal distribution parametrized as mean and standard deviation. normal_bad is a model that tries to implement the normal_sd model, but assumes an incorrect parametrization of the normal distribution. For Stan-based backends, the model is written as if Stan parametrized normal distribution with precision (while Stan uses sd), for JAGS-based backends the model is written as if JAGS parametrized normal distribution with sd (while JAGS uses precision).

interface

name of the interface to be used to fit the model


hyunjimoon/SBC documentation built on March 15, 2024, 3:18 a.m.