
Generic S3 method for creating an initial values function
Source:R/helpers-inits.R
create_initfun.RdCalled by bmm() to create an initfun for models that require initial values to properly start sampling
Arguments
- model
The
bmmodelobject for with an initfun should be created- data
The user supplied data.frame used to fit the model
- formula
The
brmsformulagenerated byconfigure_modelincluding the family for thebmmodelto be estimated.- prior
The
brmspriorthe model will be fitted with. Parameters it holds constant are absent from the Stan code and get no initial value.- ...
The arguments of
brms::brm()besides formula, data and prior that change the Stan data or code (data2,knots,drop_unused_levels), passed on tobrms::standata()andbrms::stancode().