Skip to content

What is the best way to set the initial conditions for different individuals. #636

Answered by mattfidler
john-harrold asked this question in Q&A
Discussion options

You must be logged in to vote

I don't think there is anything wrong with this approach, though you could simulate different initial conditions in this case by changing bioavailability f(depot) which would could use the same event table. The same can be said about depot(0).

One note, lapply is a bit faster to create such event tables:

rm(list=ls())
library(nlmixr2lib)
library(rxode2)
#> rxode2 2.1.1 using 8 threads (see ?getRxThreads)
#>   no cache: create with `rxCreateCache()`


mymod = function() {
  description <- "Two compartment PK model with linear clearance using differential equations"
  ini({
    lka <- 0.45 ; label("Absorption rate (Ka)")
    lcl <- 1 ; label("Clearance (CL)")
    lvc <- 3 ; label("Central v…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by john-harrold
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants