# Compute the exp-transformed identification function.
df <- data.frame(
y = rep(x = 2, times = 3),
x = 1:3,
a = c(-1, 1, 2)
)
df$meanexp_if <- meanexp_if(x = df$x, y = df$y, a = df$a)
print(df)
Run the code above in your browser using DataLab