R/ifoce.R

Defines functions nlmixr2Est.ifoce

Documented in nlmixr2Est.ifoce

#'@rdname nlmixr2Est
#'@export
nlmixr2Est.ifoce <- function(env, ...) {
  .ui <- env$ui
  rxode2::assertRxUiIovNoCor(.ui, " for the estimation routine 'ifoce'",
                             .var.name=.ui$modelName)
  .control <- env$control
  .foceiFamilyControl(env, ..., type="ifoceControl")
  .ifoceControlToFoceiControl(env)
  on.exit({
    if (exists("control", envir=.ui)) {
      rm("control", envir=.ui)
    }
  })
  env$ifoceControl <- .control
  env$est <- "ifoce"
  .ui <- env$ui
  .foceiFamilyReturn(env, .ui, ..., est="ifoce")
}
attr(nlmixr2Est.ifoce, "iov") <- TRUE
attr(nlmixr2Est.ifoce, "covPresent") <- TRUE
attr(nlmixr2Est.ifoce, "unbounded") <- .foUnbounded
# Activates mu2/mu3/mu4 covariate rewriting (R/mu2.R); gated on
# muModel/muRefCovAlg for bit-identical behavior when muModel="none".
attr(nlmixr2Est.ifoce, "mu") <- function(control) {
  isTRUE(!identical(control$muModel, "none")) && isTRUE(control$muRefCovAlg)
}

Try the nlmixr2est package in your browser

Any scripts or data that you put into this service are public.

nlmixr2est documentation built on Aug. 5, 2026, 1:11 a.m.