cleanup_model {pharmr} | R Documentation |
cleanup_model
Description
Perform various cleanups of a model
This is what is currently done
Make model statements declarative, i.e. only one assignment per symbol
Inline all assignments of one symbol, e.g. X = Y
Usage
cleanup_model(model)
Arguments
model |
(Model) Pharmpy model object |
Value
(Model) Reference to the same model
Note
When creating NONMEM code from the cleaned model Pharmpy might need toadd certain assignments to make it in line with what NONMEM requires.
Examples
## Not run:
model <- load_example_model("pheno")
model$statements
model <- cleanup_model(model)
model$statements
## End(Not run)
[Package pharmr version 1.0.1 Index]