setSameIndividualsAmongGroups
[Simulx] Set same individuals among groups
Define if the same individuals will be simulated among all groups.
Usage
setSameIndividualsAmongGroups(value)
Arguments
- value
(logical) logical to define if the same individuals will be the same for all groups.
Details
setSameIndividualsAmongGroups(value = TRUE) allows to have the same individual parameters in all groups. It is available if the following elements (required for the sampling) are the same for all groups: size of groups, parameters (population or individual) and covariates.
The main goal is to make the comparison between groups easier. In particular, it is used to compare different treatments on the same individuals - subjects with the same individual parameters.
Selecting same individuals among groups ensures that the differences between groups are only due to the treatment itself. To obtain the same conclusion without this option enabled, simulation should be performed on a very large number of individuals to averaged out the individual differences.
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
Examples
# create two groups with different treatments and same individuals
initializeLixoftConnectors("simulx")
project_name <- file.path(getDemoPath(), "4.exploration", "PKPD_exploration.smlx")
loadProject(project_name)
addGroup("simulationGroup2")
setGroupElement("simulationGroup2", elements = "Dose_4000")
setSameIndividualsAmongGroups(value = TRUE)