Residual function for fit_secondary_growth()
.
get_secondary_residuals(
this_p,
my_data,
known_pars,
sec_model_names,
transformation
)
A numeric vector of residuals.
Named vector of model parameter values.
Tibble with the data used for the fit.
Named vector of fixed model paramaters.
Named character vector defining the secondary model for each environmental factor.
Character defining the tranformation of mu
for
model fitting. One of sq
(square root), log
(log-transform) or
none
(no transformation).