How to extract Ecdf value from the Ecdf() return?
问题 The answer for This question here suggest a way by applying ecdf . However I am using Ecdf() from package Hmisc for it provides a convenient way to do a ccdf(Complementary Cumulative Distribution Function) plot. (by setting the what option to '1-F') By default, Ecdf() does the plot and return a nested list containing x and y . How can I extract the y value of a certain x value? and then plot it on the original plot? FYI: > str(Ecdf(rnorm(20), lwd = 2)) List of 2 $ x: num [1:21] -1.46 -1.46 -1