get_secondary_residuals {biogrowth}R Documentation

Residuals of secondary models

Description

Residual function for fit_secondary_growth().

Usage

get_secondary_residuals(
  this_p,
  my_data,
  known_pars,
  sec_model_names,
  transformation
)

Arguments

this_p

Named vector of model parameter values.

my_data

Tibble with the data used for the fit.

known_pars

Named vector of fixed model paramaters.

sec_model_names

Named character vector defining the secondary model for each environmental factor.

transformation

Character defining the tranformation of mu for model fitting. One of sq (square root), log (log-transform) or none (no transformation).

Value

A numeric vector of residuals.


[Package biogrowth version 1.0.4 Index]