Learn R Programming

invivoPKfit (version 2.0.1)

get_fit.pk: Get fits from a `pk` object

Description

Get the [optimx::optimx()] output from a fitted `pk` object

Usage

# S3 method for pk
get_fit(obj, model = NULL, ...)

Value

A named list of objects of class `optimx`, named for the models in `model`. As described in [optimx::optimx()] If only one model is specified, the return value will still be a list, but with only one element.

Arguments

obj

A [pk] object.

model

Optional: Specify one or more of the fitted models for which to make predictions. If NULL (the default), predictions will be returned for all of the models in `obj$stat_model`.

...

Additional arguments. Not in use.

Author

Caroline Ring, Gilberto Padilla Mercado

Details

This function returns the object(s) returned by [optimx::optimx()] for the specified model(s) and method(s), for a fitted `pk` object. See [optimx::optimx()] for details. Briefly, an `optimx` object is a `data.frame` with one row for each method used, and variables that give the optimized values for each parameter, along with several diagnostic variables (e.g. the objective function value at the optimized parameter values; the number of function evaluations/iterations; an integer code describing convergence status). The object will have attributes `details` (providing any messages returned by the methods) and `npar` (the number of parameters optimized).

See Also

Other methods for fitted pk objects: AAFE.pk(), AFE.pk(), AIC.pk(), BIC.pk(), coef.pk(), coef_sd.pk(), eval_tkstats.pk(), get_hessian.pk(), get_tkstats.pk(), logLik.pk(), predict.pk(), residuals.pk(), rmse.pk(), rsq.pk()