MonolixSuite in R
Breadcrumbs

getRegressorElements

[Simulx] Get regressor elements

Get the list of all available regressor elements for simulation. To use one of these elements in simulation, please add it to a simulation group with setGroupElement. To simulate the model for times outside of the specified grid, last value carried forward interpolation is used.

Usage

R
getRegressorElements()

Details

Regressor elements can be defined with defineRegressorElement, 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.

Note that:

  • if the project was created from a model file with regressors, a regressor element Regressors is created with one time point at 0 and all regressors equal 1.

  • if the project was created by importing a Monolix or a PKanalix project with regressors, a regressor element mlx_Reg is created based on an external file with ids, times and regressor values and names read from the dataset of the Monolix project.

See also

defineRegressorElement

Examples