RxODE (version 0.9.0-8)

rxSymPySetupPred: Setup Pred function based on RxODE object.

Description

This is for the so-called inner problem.

Usage

rxSymPySetupPred(obj, predfn, pkpars = NULL, errfn = NULL,
  init = NULL, grad = FALSE, sum.prod = FALSE,
  pred.minus.dv = TRUE, theta.derivs = FALSE, only.numeric = FALSE,
  grad.internal = FALSE, theta.internal = FALSE,
  optExpression = TRUE, run.internal = RxODE.sympy.run.internal,
  interaction = TRUE)

Arguments

obj

RxODE object

predfn

Prediction function

pkpars

Pk Pars function

errfn

Error function

init

Initialization parameters for scaling.

grad

Boolaen indicated if the the equations for the gradient be calculated

sum.prod

A boolean determining if RxODE should use more numerically stable sums/products.

pred.minus.dv

Boolean stating if the FOCEi objective function is based on PRED-DV (like NONMEM). Default TRUE.

theta.derivs

Boolean indicating if theta derivatives are setup

only.numeric

Instead of setting up the sensitivities for the inner problem, modify the RxODE to use numeric differentiation for the numeric inner problem only.

grad.internal

Internal gradient flag. This function is recursively called, and this shouldn't be set by the user.

theta.internal

Internal theta flag. This function is recursively called and shouldn't be called by the user.

optExpression

Optimize the model text for computer evaluation.

run.internal

Boolean to see if the function should be run internally.

interaction

Boolean to determine if dR^2/deta is calculated for FOCEi (not needed for FOCE)

Value

RxODE object expanded with predfn and with calculated sensitivities.