extract_secondary_pars: A helper to build the secondary models

Description Usage Arguments Value

View source: R/helpers.R

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

1
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 Jan. 28, 2021, 1:08 a.m.