Skip to contents

Generates the ODE function that is used in a Stan/Torsten model

Usage

new_ode_function(ode, parameter_names, n_cmt)

Arguments

ode

Stan code for ODE block

parameter_names

vector of parameter names. Needs to be in order defined by the chosen Torsten analytic solver.

n_cmt

number of compartments in the ODE

Value

Character vector containing valid Stan code with ODE function