get_simulate | R Documentation |
Turn formula_str into a proper R function
get_simulate(formula_str, pars, nsegments, family)
formula_str |
string. Returned by |
nsegments |
Positive integer. Number of segments, typically |
family |
One of |
par_trials |
String. For binomial models: name of trials column. |
pars_pop |
List of population parameters which the user must provide. |
pars_varying |
List varying parameters. They will default to zero (optional for the user). |
A string with R code for the fit$simulate() function corresponding to the model.
Jonas Kristoffer Lindeløv jonas@lindeloev.dk
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.