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.
extract_secondary_pars(this_p, known_pars, sec_model_names)
A nested list defining the secondary models.
A named vector of model parameters (usually, the ones fitted).
Another named vector of model parameters (usually the known ones).
A named character vector defining for each environmental factor (vector names) the type of secondary model (vector values).