evaluate_epsilon_gradient {pharmr} | R Documentation |
evaluate_epsilon_gradient
Description
Evaluate the numeric epsilon gradient
The gradient is evaluated at the current model parameter values or optionally at the given parameter values. The gradient is done for each data record in the model dataset or optionally using the dataset argument. The gradient is done at the current eta values or optionally at the given eta values.
This function currently only support models without ODE systems
Usage
evaluate_epsilon_gradient(
model,
etas = NULL,
parameters = NULL,
dataset = NULL
)
Arguments
model |
(Model) Pharmpy model |
etas |
(data.frame (optional)) Optional list of eta values |
parameters |
(list(str=numeric) (optional)) Optional list of parameters and values |
dataset |
(data.frame (optional)) Optional dataset |
Value
(data.frame) Gradient
See Also
evaluate_eta_gradient : Evaluate the eta gradient
Examples
## Not run:
model <- load_example_model("pheno_linear")
results <- load_example_modelfit_results("pheno_linear")
etas <- results$individual_estimates
evaluate_epsilon_gradient(model, etas=etas)
## End(Not run)
[Package pharmr version 1.0.1 Index]