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.
List of user-provided parameters, in the format of fit$pars.
Positive integer. Number of segments, typically nrow(ST).
One of gaussian(), binomial(), bernoulli(), or poission().
Only default link functions are currently supported.
Jonas Kristoffer Lindeløv jonas@lindeloev.dk