Learn R Programming

pharmr (version 1.4.0)

cleanup_model: cleanup_model

Description

Perform various cleanups of a model

This is what is currently done

  • Make model statements declarative, i.e. only one assignment per symbol

  • Inline all assignments of one symbol, e.g. X = Y

  • Remove all random variables with no variability (i.e. with omegas fixed to zero)

  • Put fixed thetas directly in the model statements

Usage

cleanup_model(model)

Value

(Model) Updated model

Arguments

model

(Model) Pharmpy model object

Examples

Run this code
if (FALSE) {
model <- load_example_model("pheno")
model$statements
model <- cleanup_model(model)
model$statements
}

Run the code above in your browser using DataLab