getCovariateElements
[Simulx] Get covariate elements
Get the list of all available covariate elements in the loaded project.
To use one of these elements in simulation, please add it to a simulation group with setGroupElement
.
Usage
getCovariateElements()
Details
Covariate elements can be defined with defineCovariateElement, or created by importing a Monolix 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", "distribution" 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. |
Note that:
- if the project was created from a model file, a covariate element Covariates is created with all values equal 1.
- if the project was created by importing a Monolix project,
a covariate element mlx_Cov is created with the values corresponding to the covariates values from the dataset of the Monolix project.
a covariate element mlx_CovDist is created with the values corresponding to the estimation of the distribution of covariates in the dataset of the Monolix project.
The "distribution" type of covariate elements can only be created in the GUI. The "manual" type corresponds to elements created manually in the GUI, or with a data frame in connectors. The external type corresponds to elements created from an external file in the GUI or with the connectors.