| .rxAdjointGrad | R Documentation |
Computes dG/dtheta for every parameter with a single backward sweep.
Supports least squares (default,
G = sum_i 1/2 weight_i (f_i - obs_i)^2) or, when errModel is given, the
FOCEi -2 log-likelihood G = sum_i r_i^2/v_i + log(v_i) with
v_i = add^2 + (prop*f_i)^2.
.rxAdjointGrad(
object,
params,
events,
calcSens,
pred,
obsTimes,
obs,
weight = 1,
errModel = NULL,
denseBy = 0.01,
atol = 1e-10,
rtol = 1e-10
)
object |
model definition accepted by |
params |
named numeric vector of parameter values. |
events |
event table / data used to define dosing. |
calcSens |
character vector of parameter names to differentiate with respect to. |
pred |
character prediction expression |
obsTimes |
numeric observation times. |
obs |
numeric observed values aligned with |
weight |
numeric scalar or vector of least-squares observation weights
(ignored when |
errModel |
|
denseBy |
grid spacing for the forward checkpoint trajectory; smaller values reduce the covariate-interpolation error. |
atol, rtol |
solver tolerances used for both the forward checkpoint and the backward sweeps. |
named numeric vector dG/dtheta over calcSens.
Matthew L. Fidler
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.