sample
remp.Rd
Based on the empirical cumulative density function as presented by Chakraborti (2006).
remp(n, sample)
integer, number of samples to be drawn
numeric vector of sample values to base the ECDF on
numeric vector of random values drawn from the ECDF
Chakraborti, S., Hong, B., & Van De Wiel, M. A. (2006). A note on sample size determination for a nonparametric test of location. Technometrics, 48(1), 88–94. https://doi.org/10.1198/004017005000000193
x <- 1:5
remp(10, x)
#> [1] 2.19898468 1.29332819 0.08331394 0.24473694 5.41967901 4.60255388
#> [7] 5.17353385 5.47758689 0.66418263 1.33686751