
Transition ODEs written in d/dt() format to matrix exponential / inductive linearization format
Source:R/indLin.R
indLin.RdTransition ODEs written in d/dt() format to matrix exponential / inductive linearization format
Usage
indLin(model, doConst = FALSE, calcSens = NULL)
rxOdeToIndLin(model, doConst = FALSE, calcSens = NULL)
rxToIndLin(model, doConst = FALSE, calcSens = NULL)See also
Other Model UI and piping:
as.ini(),
as.model(),
as.rxUi(),
coef.rxUi(),
ini.rxUi(),
ini<-(),
linCmtMicro(),
linToOde(),
model.function(),
model<-(),
modelExtract(),
odeToLin(),
rxAppendModel(),
rxFixPop(),
rxFixRes(),
rxGetControl(),
rxRemoveControl(),
rxRename(),
rxSetControl(),
rxSetCovariateNamesForPiping(),
rxSetPipingAuto(),
rxUiDecompress(),
rxode2<-(),
update.rxUi(),
zeroRe()
Examples
# \donttest{
pk <- function() {
model({
d/dt(depot) <- -ka * depot
d/dt(central) <- ka * depot - cl / v * central
})
}
writeLines(indLin(pk))
#>
#>
#> ℹ parameter labels from comments are typically ignored in non-interactive mode
#> ℹ Need to run with the source intact to parse comments
#>
#>
#> ℹ parameter labels from comments are typically ignored in non-interactive mode
#> ℹ Need to run with the source intact to parse comments
#>
#>
#> ℹ parameter labels from comments are typically ignored in non-interactive mode
#> ℹ Need to run with the source intact to parse comments
#> matExp()
#> cmt(depot)
#> cmt(central)
#> k_depot_central = ka
#> k_central_output = cl/v
#> df(depot)/dy(depot) = -ka
#> df(central)/dy(depot) = ka
#> df(central)/dy(central) = -cl/v
# }