get_secondary_residuals: Residuals of secondary models

View source: R/fit_secondary_models.R

get_secondary_residualsR 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.


biogrowth documentation built on May 29, 2024, 4:17 a.m.