Turn formula_str into a proper R function
get_simulate(formula_str, pars, nsegments, family)
A string with R code for the fit$simulate() function corresponding to the model.
string. Returned by get_formula
.
Positive integer. Number of segments, typically nrow(ST)
.
One of gaussian()
, binomial()
, bernoulli()
, or poission()
.
Only default link functions are currently supported.
String. For binomial models: name of trials column.
List of population parameters which the user must provide.
List varying parameters. They will default to zero (optional for the user).
Jonas Kristoffer Lindeløv jonas@lindeloev.dk