Skip to content

residual error not assigned to variable defined using lincmt #851

Answered by mattfidler
crgfn asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @crgfn

In nlmixr2 style simulations the sim includes the proportional error, Cc is the linCmt() concentrations and ipredSim is the simulated individual predictions.

This is what is shown in your plots, so this is expected behavior.

The underlying rxode2 low-level model can show this a bit more clearly:

require(rxode2)
#> Loading required package: rxode2
#> Warning: package 'rxode2' was built under R version 4.4.2
#> rxode2 3.0.2.9000 using 4 threads (see ?getRxThreads)
#>   no cache: create with `rxCreateCache()`

mymdl <- function(){
  ini({
    lcl <- 1.6
    lvc <- log(90)
    lka <- 0.1
    prop.err <- 0.2
    eta.cl ~ 0.1
    eta.vc ~ 0.1
    eta.ka ~ 0.1
  })
  model({
    cl <-

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@crgfn
Comment options

@mattfidler
Comment options

@mattfidler
Comment options

@mattfidler
Comment options

Answer selected by mattfidler
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
Converted from issue

This discussion was converted from issue #850 on February 21, 2025 00:52.