I would like to apply a gam model on a dataset with specifying the types of functions to use.
It would be something like :
y ~ cst1 * (s(var1)-s(var2)) * (1 - exp(var3*cst2))
s
has to be the same function for both var1
and var2
. I don't have a prior idea on s
function family. If I resume, the model would find the constants (cst1
and cst2
) plus the function s
.
Is it possible? If not, is there any way (another type of models) i can use to do what i'm looking for?
Thanks in advance for replies.