Overview

Description

Return the path of a Monolix PK model defined by a list of parameter names.

Possible parameter names are: Tlag, Mtt, Ktr, ka, Tk0, V, V1, V2, V3, k12, k21, k13, k31, Q, Q2, Q3, Cl, k, Vm, Km

Usage

whichPKmodel <- function(parameter)

Arguments

parameter
a vector of PK parameter names


Examples

library(Rsmlx)
whichPKmodel(parameter=c("V", "Cl"))
## [1] "C:/ProgramData/Lixoft/MonolixSuite2018R2/factory/library/pk/infusion_1cpt_VCl.txt"

Mlxtran is cas sensitive:

whichPKmodel(parameter=c("V", "CL"))
## Error: The model was not found in the PK library

Path to Monolix install should be automatically detected. If that’s not the case, this path can be provided

p <- whichPKmodel(parameter=c("Tlag", "Tk0", "V", "k"), 
                  mlxPath="C:/ProgramData/Lixoft/MonolixSuite2018R2")
print(basename(p))
## [1] "oral0_1cpt_TlagTk0Vk.txt"

Path to the PK library can also be provided if required:

p <- whichPKmodel(parameter=c("Mtt", "Ktr", "ka", "V1", "V2", "V3", "Q2", "Q3", "Vm", "Km"),
                  pkPath="C:/ProgramData/Lixoft/MonolixSuite2018R2/factory/library/pk")
print(basename(p))
## [1] "oral1_3cpt_KtrMttkaV1Q2V2Q3V3VmKm.txt"