Skip to content

Requesting an example converting rxode2 to NONMEM #107

Description

@john-harrold

I've looked through the documentation for rxToNonmem() and I'm not sure what the first input is :).

Say I have the model below. How do I convert that into NONMEM or Monolix format? I'm assuming the
the ui argument is the rx below.

mod1 <- function() {
  ini(https://nlmixr2.github.io/rxode2/reference/ini.html)({
    # central 
    KA=2.94E-01
    CL=1.86E+01
    V2=4.02E+01
    # peripheral
    Q=1.05E+01
    V3=2.97E+02
    # effects
    Kin=1
    Kout=1
    EC50=200 
  })
  model(https://nlmixr2.github.io/rxode2/reference/model.html)({
    C2 <- centr/V2
    C3 <- peri/V3
    d/[dt](https://rdrr.io/r/stats/TDist.html)(depot) <- -KA*depot
    d/[dt](https://rdrr.io/r/stats/TDist.html)(centr) <- KA*depot - CL*C2 - Q*C2 + Q*C3
    d/[dt](https://rdrr.io/r/stats/TDist.html)(peri)  <- Q*C2 - Q*C3
    eff(0) <- 1
    d/[dt](https://rdrr.io/r/stats/TDist.html)(eff)   <- Kin - Kout*(1-C2/(EC50+C2))*eff
  })
}

rx = rxode2(mod1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions