powered by
Obtaining the inverse of marginal empirical cumulative distribution (ECDF)
ecdf.inv(x, p, sort.flag = TRUE)
The inverse values of p based on ECDF of x.
p
x
A vector of numbers which is the marginal empirical data.
A vector of numbers which is the probability of the simulated data.
A logical value to specify whether to sort the output data.
ecdf.inv(0:10, c(0.25, 0.75)) ecdf.inv(0:10, c(0.25, 0.75), FALSE)
Run the code above in your browser using DataLab