List of statevars passed to to the write.template.ui
function. This usually isn't called directly.
A PK/PD model is defined using RxODE
, and
a set of parameters and initial values are defined. Then
the appropriate R scripts for the shiny's user interface ui.R
and the server logic server.R
are created in the
directory appDir
.
The function evaluates the following PK/PD model by default:
C2 = centr/V2;
C3 = peri/V3;
d/dt(depot) =-KA*depot;
d/dt(centr) = KA*depot - CL*C2 - Q*C2 + Q*C3;
d/dt(peri) = Q*C2 - Q*C3;
d/dt(eff) = Kin - Kout*(1-C2/(EC50+C2))*eff;
This can be changed by the ODE.config
parameter.
To launch the shiny app, simply issue the runApp(appDir)
R command.