nlmixr_trans: Extend and translate nlmixr models

Description Usage Arguments Value Examples

View source: R/nlmixr_tran.R

Description

Extend and translate nlmixr models

Usage

1
nlmixr_trans(object, ...)

Arguments

object

A function specifying the nlmixr model

...

Currently ignored

Value

object modified by expanding functions

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
model <- function() {
  ini({
    lcl <- (0.01)
    lv <- log(0.5)
    eta_cl ~ 0.1
    add_err <- 0.1
  })
  model({
    linear_model_ode_onecmt_iv(cl=exp(lcl+eta_cl), v=exp(lv))
    cp <- central/exp(lv)
    cp ~ add(add_err)
  })
}
nlmixr_trans(model, linear_model_ode_onecmt_iv)

nlmixrdevelopment/nlmixrExtra documentation built on Dec. 22, 2021, 3:11 a.m.