extract_secondary_pars: A helper to build the secondary models

View source: R/helpers.R

extract_secondary_parsR Documentation

A helper to build the secondary models

Description

Most of the functions for fitting mix in the vectors parameters for the primary and secondary models, but the functions for making predictions need that they are separated. This one extracts the parameters of the secondary model.

Usage

extract_secondary_pars(this_p, known_pars, sec_model_names)

Arguments

this_p

A named vector of model parameters (usually, the ones fitted).

known_pars

Another named vector of model parameters (usually the known ones).

sec_model_names

A named character vector defining for each environmental factor (vector names) the type of secondary model (vector values).

Value

A nested list defining the secondary models.


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