Skip to contents

This function returns a transformation function that appends parameter values to a list. It is used for transforming model parameters into a format compatible with other functions.

Usage

make_transform(temp, c_R_D, SMC, decay, cov_SMC)

Arguments

temp

A numeric value representing the temperature parameter.

c_R_D

A numeric value representing the decay rate.

SMC

A numeric value representing the SMC (Scale of Mass Concentration).

decay

A numeric value representing the decay parameter.

cov_SMC

A numeric value representing the covariance for SMC.

Value

A function that takes a vector of parameters (theta) and combines them with the other provided values into a list.

Examples

transform_function <- make_transform(temp = 25, c_R_D = 0.5, SMC = 0.1,
decay = 0.03, cov_SMC = 0.05)
transformed_params <- transform_function(c(0.1, 0.2, 0.3))