I saw already a similar question, but I can´t figure out, how to do. Maybe you can help.
Back solving a function or goal seek in R
ES <- function(y, z){-y * (1-pnorm(y/z)) + z * dnorm(y/z)} # = x
ES(906.19, 707.1) #33.47587
What I want is to solve for y, so z and x (33.4) is known. I have seen the solve and optim function, but I am not able to get the expected result.
Thanks!