calculate_gammas_secondary: Gamma factors for fitting secondary models

Description Usage Arguments Value

View source: R/fit_secondary_models.R

Description

A helper for fitting the secondary gamma models. Calculates the gamma factors corresponding to the models defined and the experimental conditions. In order for it to work, the environmental factors must be named identically in the 3 arguments.

Usage

1
calculate_gammas_secondary(sec_model_names, my_data, secondary_models)

Arguments

sec_model_names

named character vector defining the type of secondary model. Its names correspond to the environmental condition and the values define the corresponding type of secondary model.

my_data

Tibble of experimental conditions.

secondary_models

A list defining the parameters of the secondary models.

Value

a numeric vector of length nrow(my_data) with the gamma factor for each experimental condition.


biogrowth documentation built on Jan. 28, 2021, 1:08 a.m.