I am trying to invert a function like one would invert an empirical cdf. If I wanted to invert an empirical cdf, I would write something like,
tau = 0.8
y=rnorm(1000,1)
[f,x]=ecdf(y)
q = interp1(f,x,tau,'next');
Instead, suppose that I have defined a function with multiple inputs, where all but the last input is based upon data. For example,
example_data= example_data_missingdatacdf(x1,x2,x3,scalar_delta)
I want to find the smallest value of delta such that
example_data_missingdatacdf(x1,x2,x3,scalar_delta)>= tau
What can I do? Thanks for any help in advance.