setIndividualParameterVariability
[Monolix] Individual variability management
Add or remove inter-individual and/or intra-individual variability (i.e. random effects) from some of the individual parameters present in the project.
Call getIndividualParameterModel to get a list of the available parameters within the current project.
Usage
setIndividualParameterVariability(...)
Arguments
- ...
 A list of comma-separated pairs {variabilityLevel = {individualParameterName = (logical)hasVariability} } (see example).
See also
getIndividualParameterModel to see the current individual parameter model settings getVariabilityLevels to get a list of the variability levels
setIndividualParameterModel to change the individual parameter model 
The components of the individual parameter model can be updated individually: setIndividualParameterDistribution to update just the individual parameter distributions setIndividualLogitLimits to update just the limits for parameters with a logit distribution setCovariateModel to update just the covariate model   setCorrelationBlocks to update just the correlation structure  
Examples
# when there is only one variability level
loadProject( file.path(getDemoPath(), "1.creating_and_using_models", "1.1.libraries_of_models", "theophylline_project.mlxtran") )
setIndividualParameterVariability(ka = TRUE, V = FALSE)
getIndividualParameterModel()$variability
#> $id
#>    ka     V    Cl 
#>  TRUE FALSE  TRUE 
#> 
# multiple variability levels
loadProject( file.path(getDemoPath(), "5.models_for_individual_parameters", "5.4.inter_occasion_variability", "iov1_project.mlxtran") )
setIndividualParameterVariability(id = list(ka = FALSE, V = FALSE), OCC = list(ka = TRUE))
getIndividualParameterModel()$variability
#> $id
#>    ka     V    Cl 
#> FALSE FALSE  TRUE 
#> 
#> $OCC
#>    ka     V    Cl 
#>  TRUE  TRUE FALSE 
#>