Create new ODE model
1 2 3 4 5 6 7 8 | new_ode_model(model = NULL, code = NULL, pk_code = NULL,
dose_code = NULL, file = NULL, func = NULL, state_init = NULL,
parameters = NULL, units = NULL, size = NULL, lagtime = NULL,
obs = list(cmt = 1, scale = 1), dose = list(cmt = 1), covariates = NULL,
declare_variables = NULL, iiv = NULL, iov = NULL, omega_matrix = NULL,
ruv = NULL, default_parameters = NULL, cpp_show_code = FALSE,
package = NULL, install = TRUE, folder = NULL, lib_location = NULL,
verbose = FALSE, as_is = FALSE)
|
model |
model name from model library |
code |
C++ code specifying ODE system |
pk_code |
C++ code called at any event |
dose_code |
C++ code called at dose event only |
file |
file containing C++ code |
func |
R function to be used with deSolve library |
state_init |
vector of state init |
parameters |
list or vector of parameter values |
units |
list or vector of parameter units |
size |
size of state vector for model. Size will be extracted automatically from supplied code, use this argument to override. |
lagtime |
lag time |
obs |
list with "scale": character string with definition for scale, e.g. "V" or "V*(WT/70)". If NULL, scale defaults to 1., and "cmt" the observation compartment |
dose |
specify default dose compartment, e.g. list(cmt = 1) |
covariates |
specify covariates, either as a character vector or a list. if specified as list, it allows use of timevarying covariates (see 'new_covariate()' function for more info) |
declare_variables |
declare variables |
iiv |
inter-individual variability, can optionally be added to library |
iov |
inter-occasion variability, can optionally be added to library |
omega_matrix |
variance-covariance matrix for inter-individual variability, can optionally be added to library |
ruv |
residual variability, can optionally be added to library |
default_parameters |
population or specific patient values, can optionally be added to library |
cpp_show_code |
show generated C++ code |
package |
package name when saving as package |
install |
install package after compilation? |
folder |
base folder name to create package in |
lib_location |
install into folder ('–library' argument) |
verbose |
show more output |
as_is |
use C-code as-is, don't substitute line-endings or shift indices |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.