Skip to main content
Skip table of contents

setCorrelationBlocks

Define the correlation block structure associated to some of the variability levels of the current project. Call getVariabilityLevels to get a list of the variability levels and getIndividualParameterModel to get a list of the available individual parameters within the current project.

Usage

R
setCorrelationBlocks(...)

Arguments

...

A list of comma-separated pairs {variabilityLevel = list(vector)parameterNames}) } (see example).

See also

getVariabilityLevels to see the variability levels getIndividualParameterModel to see the current individual parameter model settings
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
setIndividualParameterVariability to update just the individual parameter variability
setCovariateModel to update just the covariate model

Examples

R
initializeLixoftConnectors("monolix")

# creating multiple correlation blocks
loadProject( file.path(getDemoPath(), "1.creating_and_using_models", "1.1.libraries_of_models", "warfarinPK_project.mlxtran") )
setCorrelationBlocks(id = list(  c("ka","Cl"), c("Tlag","V") ) )
getIndividualParameterModel()$correlationBlocks
#> $id
#> $id[[1]]
#> [1] "Cl" "ka"
#> 
#> $id[[2]]
#> [1] "Tlag" "V"   
#> 
#> 

# creating blocks at multiple variability levels
loadProject( file.path(getDemoPath(), "5.models_for_individual_parameters", "5.4.inter_occasion_variability", "iov1_project.mlxtran") )
setIndividualParameterVariability(list(OCC = c(Cl = TRUE))) # parameter must have variability to be included in correlation
setCorrelationBlocks(id = list( c("ka","V", "Cl") ), OCC = list( c("Cl","V") ) )
getIndividualParameterModel()$correlationBlocks
#> $id
#> $id[[1]]
#> [1] "Cl" "V"  "ka"
#> 
#> 
#> $OCC
#> $OCC[[1]]
#> [1] "Cl" "V" 
#> 
#> 

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.