get_params {ushr} | R Documentation |
Extract fitted parameters
Description
This function extracts all untransformed parameters from the output of optim (i.e. the fitted model).
Usage
get_params(fit, initial_params, free_param_index, param_names,
inv_param_transform_fn, index = NULL)
Arguments
fit |
the output of optim i.e. the fitted model for a particular subject |
initial_params |
named vector of the initial parameter guess |
free_param_index |
logical TRUE/FALSE vector indicating whether the parameters A, delta, B, gamma are to be recovered. This should be c(TRUE, TRUE, TRUE, TRUE) for the biphasic model and c(FALSE, FALSE, TRUE, TRUE) for the single phase model. |
param_names |
character vector of the parameter names. This should be c("A", "delta", "B", "gamma") for the biphasic model or c("B", "gamma") for the single phase model. |
inv_param_transform_fn |
list of transformation functions to be used when back-transforming the transformed parameters. Should be the inverse of the forward transformation functions. |
index |
indicator value used inside the master function to indicate the subject number. |