In most cases, the "gq_parent" field is automatically handled by copy_model_as_stan_gq(). However, the following convenience functions enable manually modifying the value if needed:

  • add_stan_gq_parent(): add specified values, keeping any existing values

  • replace_all_stan_gq_parent(): replace all existing values with the specified values

  • remove_stan_gq_parent(): remove the specified values

add_stan_gq_parent(.mod, .parent)

replace_all_stan_gq_parent(.mod, .parent)

remove_stan_gq_parent(.mod, .parent)

Arguments

.mod

A bbi_stan_gq_model object.

.parent

Character vector of paths to parent model. If relative, the paths are taken as relative to the directory containing .mod.

Value

The modified model objects (after writing changes to disk).

See also

get_stan_gq_parent for getting the "gq_parent" value, bbr_stan for more information about standalone generated quantities