Skip to contents

Called by bmm() to create an initfun for models that require initial values to properly start sampling

Usage

create_initfun(model, data, formula)

Arguments

model

The bmmodel object for with an initfun should be created

data

The user supplied data.frame used to fit the model

formula

The brmsformula generated by configure_model including the family for the bmmodel to be estimated.

Value

An initfun with no arguments that generates inital values suitable for the STAN parameters generated by the respective model call