[Simulx] Get treatment elements
Get the list of all available treatments elements for the simulation. To use one or several of these elements in simulation, please add it to a simulation group with setGroupElement.
Usage
getTreatmentElements()
Details
Treatment elements can be defined with defineTreatmentElement, or created by importing a Monolix or a PKanalix project with importProject. Elements defined are created in the background and saved with the Simulx project if calling saveProject. They can be deleted with deleteElement.
Each element is a list of
|
"inputType" |
(character) |
Type of input definition: can be "manual" or "external". |
|
"file" |
(list) |
if the inputType is external, list with path to the file and sheet in the excel (if relevant) . NULL else wise. |
|
"data" |
(data.frame) |
Values of the element as defined in |
|
"admID" |
(integer) |
Administration id as defined in |
|
"scale" |
(integer) |
information on scaling by covariates if defined in |
If the project was created from a model file, no treatment element is added.
If the project was created by importing a Monolix or a PKanalix project, for each administration type present in the original project (dataset column tagged as administration id), an individual element mlx_adm is created as an external file with the dosing times and amounts from the original dataset in the Monolix or PKanalix project.