Skip to contents

Model block for rxode2/nlmixr models

Usage

# S3 method for `function`
model(x, ..., append = FALSE, auto = TRUE, envir = parent.frame())

# S3 method for rxUi
model(x, ..., append = FALSE, auto = TRUE, envir = parent.frame())

# S3 method for rxode2
model(x, ..., append = FALSE, auto = TRUE, envir = parent.frame())

# S3 method for rxModelVars
model(x, ..., append = FALSE, auto = TRUE, envir = parent.frame())

model(
  x,
  ...,
  append = FALSE,
  auto = getOption("rxode2.autoVarPiping", TRUE),
  envir = parent.frame()
)

# S3 method for default
model(x, ..., append = FALSE, envir = parent.frame())

Arguments

x

model expression

...

Other arguments

append

This is a boolean to determine if the lines are appended in piping. The possible values for this is:

  • TRUE which is when the lines are appended to the model instead of replaced (default)

  • FALSE when the lines are replaced in the model

  • NA is when the lines are pre-pended to the model instead of replaced

auto

This boolean tells if piping automatically selects the parameters should be characterized as a population parameter, between subject variability, or a covariate. When TRUE this automatic selection occurs. When FALSE this automatic selection is turned off and everything is added as a covariate (which can be promoted to a parameter with the ini statement). By default this is TRUE, but it can be changed by options(rxode2.autoVarPiping=FALSE).

envir

the environment in which unevaluated model expressions is to be evaluated. May also be NULL, a list, a data frame, a pairlist or an integer as specified to sys.call.

Value

Model block with ini information included. ini must be called before model block

Author

Matthew Fidler