calculate_gammas_secondary: Gamma factors for fitting secondary models

View source: R/fit_secondary_models.R

calculate_gammas_secondaryR Documentation

Gamma factors for fitting secondary models

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

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 conditions and its 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 July 20, 2022, 1:09 a.m.