Skip to contents

The naive model uses the brms family as it is, so it only needs Stan code for a family brms does not have, such as gengamma(), whose density brms calls by name.

Usage

# S3 method for class 'epidist_naive_model'
epidist_stancode(
  data,
  family = epidist_family(data),
  formula = epidist_formula(data),
  ...
)

Arguments

data

An object with class corresponding to an implemented model.

family

The epidist family object specifying the distribution

formula

The model formula

...

Additional arguments passed to fn method.

Value

A list of stanvars objects, or NULL when none are needed.