MonolixSuite in R
Breadcrumbs

setObservationDistribution

[Monolix] Set observation model distribution

Set the distribution in the Gaussian space for the observation model(s). Available distribution types are "normal", "logNormal", or "logitNormal". Call getObservationInformation to get a list of the available observation model names within the current project. Only specified observation models will be changed. Call setObservationLimits to set limits for any logitNormal distributions.

Usage

R
setObservationDistribution(...)

Arguments

... A list of comma-separated pairs {observationModel = (character) "distribution"}.

See also

getContinuousObservationModel get the current observation model for the current project
getObservationInformation to get the continuous observations present in the current project

Set components of the continuous observation model(s):
setObservationDistribution
setErrorModel

Examples

R
initializeLixoftConnectors("monolix")
project <- file.path(getDemoPath(), "1.creating_and_using_models",  "1.1.libraries_of_models", "warfarinPKPD_project.mlxtran")
loadProject(project)

# get observation model names available in the current project
getObservationInformation()$name
#> [1] "y1" "y2"

# set the distributions and the limits for the logitNormal distribution
setObservationDistribution(y1 = "logNormal", y2 = "logitNormal")
setObservationLimits(y2 = c(0, 100))
getContinuousObservationModel()$distribution
#>            y1            y2 
#>   "logNormal" "logitNormal"