Parse the ODE rates so they can be compiled.

parse_ode_rates(
  ode_rates,
  param_codes,
  const_codes,
  tcovar_codes,
  ode_comp_codes
)

Arguments

ode_rates

character vector of ODE rates

param_codes

named numeric vector of parameter codes

const_codes

named numeric vector of constant codes

tcovar_codes

named numeric vector of time-varying covariate codes

ode_comp_codes

named numeric vector of ODE compartment codes

Value

string snippets for the ODE that can be compiled