MonolixSuite in R
Breadcrumbs

setGroupElement

[Simulx] Set elements to a simulation group

Set the new element of a specific group. If an element of the same type is already set, setGroupElement will replace it. For treatments and outputs, it is possible to set several elements at the same time by using a vector.

Usage

R
setGroupElement(group, elements)

Arguments

group (character) Group name (when creating a new Simulx project, the default group name is "simulationGroup1"). elements (character) Vector of elements that are already defined

Details

Simulation groups are used for simulation as in Simulx GUI. The same rules apply as in the GUI to set group elements. For example, a covariate element can be set only if the parameter element is a population parameter.

At the creation of a Simulx project, a first group is created by default with the name "simulationGroup1". Use getGroups to check which groups have already been defined, and which elements are set in each group. To add a simulation group, use addGroup. To remove a simulation group, use removeGroup. To add or change a group element, use setGroupElement. To remove an element from a group, use removeGroupElement. To define new elements, use one of the define...Element functions.

See also

getGroups

Examples

R
  initializeLixoftConnectors("monolix")
  monolix_project <- file.path(getDemoPath(), "1.creating_and_using_models", "1.1.libraries_of_models", "warfarinPK_project.mlxtran")
  initializeLixoftConnectors("simulx")
  importProject(monolix_project)
  setGroupElement(group = "simulationGroup1", elements = c("mlx_EBEs", "mlx_Cc"))