MonolixSuite in R
Breadcrumbs

setSharedIds

[Simulx] Set element types sharing individuals

Select the element types that will share the same individuals in the simulation.

Usage

R
setSharedIds(sharedIds)

Arguments

sharedIds (vector) List of element types. The available types are: covariate, output, treatment, regressor, population, individual

Details

If several elements are defined with tables of individual values and set to some simulation groups, the option "shared ids" allows to create an intersection of ids present in these tables. After that, ids from this intersection are sampled to create the data for simulation.

All options of the Simulx scenario are the same as in Simulx GUI. Check the online doc of Simulx to get more guidance on how to use them.

See also

getSharedIds

Examples

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

  # to remove shared IDs
  setSharedIds(sharedIds = c())