I have an anonymous function that I use to apply a double-exponential transformation to, and it works well for me with hard-coded values:
custom_func <- function(x) {
0.01^(0.95^(x/max(x)*100))
}
df$newVar <- custom_func(df$var)
df$newVar
It returns the expected transformed variable:

However, I want to use create a version that will ingest multiple parameters for the second exponent and add them as permanent vectors to my data frame. My attempt doesn't add anything to the dataframe and having trouble understanding how to fix this:
alpha <- seq(0.85, 0.95, by= .01)
dblExponential <- function(a,x){
for (i in alpha) {
0.01^(a^(x/max(x)*100))
}
}
dblExponential(alpha, df$var)
df